Part Number Hot Search : 
LM386 D74LVC TBC0302B 1AL012 29LV128 0100P 2SK604 L60S125
Product Description
Full Text Search
 

To Download AZ703000 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  user?s manual target devices v850 series tm target real-time os rx850 ver. 3.13 or later rx850 pro ver. 3.13 or later az850 ver. 3.10 system performance analyzer document no. u14410ej4v0um00 (4th edition) date published june 2002 n cp(k) printed in japan 1999, 2000
user's manual u14410ej4v0um 2 [memo]
user's manual u14410ej4v0um 3 v800 series, v850 series, v851, v852, v853, v854, v850/sa1, v850/sb1, v850/sb2, v850/sf1, v850/sv1, v850e/ms1, v850e/ma1, v850e/ma2, v850e/ms2, and v850e/ia1 are trademarks of nec corporation. windows and windows nt are either registered trademarks or trademarks of microsoft corporation in the united states and/or other countries. pc/at is a trademark of international business machines corporation. green hills software is a trademark of green hills software, inc.
user's manual u14410ej4v0um 4 the export of this product from japan is regulated by the japanese government. to export this product may be prohibited without governmental license, the need for which must be judged by the customer. the export or re-export of this product from a country other than japan may also be prohibited without a license from that country. please call an nec sales representative. m8e 00. 4 the information in this document is current as of may, 2002. the information is subject to change without notice. for actual design-in, refer to the latest publications of nec's data sheets or data books, etc., for the most up-to-date specifications of nec semiconductor products. not all products and/or types are available in every country. please check with an nec sales representative for availability and additional information. no part of this document may be copied or reproduced in any form or by any means without prior written consent of nec. nec assumes no responsibility for any errors that may appear in this document. nec does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from the use of nec semiconductor products listed in this document or any other liability arising from the use of such products. no license, express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of nec or others. descriptions of circuits, software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples. the incorporation of these circuits, software and information in the design of customer's equipment shall be done under the full responsibility of customer. nec assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits, software and information. while nec endeavours to enhance the quality, reliability and safety of nec semiconductor products, customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely. to minimize risks of damage to property or injury (including death) to persons arising from defects in nec semiconductor products, customers must incorporate sufficient safety measures in their design, such as redundancy, fire-containment, and anti-failure features. nec semiconductor products are classified into the following three quality grades: "standard", "special" and "specific". the "specific" quality grade applies only to semiconductor products developed based on a customer-designated "quality assurance program" for a specific application. the recommended applications of a semiconductor product depend on its quality grade, as indicated below. customers must check the quality grade of each semiconductor product before using it in a particular application. "standard": computers, office equipment, communications equipment, test and measurement equipment, audio and visual equipment, home electronic appliances, machine tools, personal electronic equipment and industrial robots "special": transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster systems, anti-crime systems, safety equipment and medical equipment (not specifically designed for life support) "specific": aircraft, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems and medical equipment for life support, etc. the quality grade of nec semiconductor products is "standard" unless otherwise expressly specified in nec's data sheets or data books, etc. if customers wish to use nec semiconductor products in applications not intended by nec, they must contact an nec sales representative in advance to determine nec's willingness to support a given application. (note) (1) "nec" as used in this statement means nec corporation and also includes its majority-owned subsidiaries. (2) "nec semiconductor products" means any semiconductor product developed or manufactured by or for nec (as defined above). ? ? ? ? ? ?
user's manual u14410ej4v0um 5 regional information some information contained in this document may vary from country to country. before using any nec product in your application, piease contact the nec office in your country to obtain a list of authorized representatives and distributors. they will verify: ? device availability ? ordering information ? product release schedule ? availability of related technical literature ? development environment specifications (for example, specifications for third-party tools and components, host computers, power plugs, ac supply voltages, and so forth) ? network requirements in addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary from country to country. nec electronics inc. (u.s.) santa clara, california tel: 408-588-6000 800-366-9782 fax: 408-588-6130 800-729-9288 nec electronics hong kong ltd. hong kong tel: 2886-9318 fax: 2886-9022/9044 nec electronics hong kong ltd. seoul branch seoul, korea tel: 02-528-0303 fax: 02-528-4411 nec electronics shanghai, ltd. shanghai, p.r. china tel: 021-6841-1138 fax: 021-6841-1137 nec electronics taiwan ltd. taipei, taiwan tel: 02-2719-2377 fax: 02-2719-5951 nec electronics singapore pte. ltd. novena square, singapore tel: 253-8311 fax: 250-3583 nec do brasil s.a. electron devices division guarulhos-sp, brasil tel: 11-6462-6810 fax: 11-6462-6829 j02.4 nec electronics (europe) gmbh duesseldorf, germany tel: 0211-65 03 01 fax: 0211-65 03 327  sucursal en espa ? a madrid, spain tel: 091-504 27 87 fax: 091-504 28 60 v?lizy-villacoublay, france tel: 01-30-67 58 00 fax: 01-30-67 58 99  succursale fran ? aise  filiale italiana milano, italy tel: 02-66 75 41 fax: 02-66 75 42 99  branch the netherlands eindhoven, the netherlands tel: 040-244 58 45 fax: 040-244 45 80  branch sweden taeby, sweden tel: 08-63 80 820 fax: 08-63 80 388  united kingdom branch milton keynes, uk tel: 01908-691-133 fax: 01908-670-290
user's manual u14410ej4v0um 6 major revisions in this edition page description throughout ? modification of az850 version to ver. 3.10 ? modification from v850 family to v850 series p.17 modification of description in 1.4 operating environment p.18 modification of installation procedure in 2.1 installation procedure pp.19, 20 change of name of file for az monitor creation in 2.2 directory configuration p.21 modification of uninstallation procedure in 2.3 uninstallation procedure pp.23, 27 to 30 3.1 az850 operation procedure ? modification and addition of screen diagram and description for the following windows and dialog boxes (4) perform settings in az option dialog box, (11) perform check using cpu window, (12) perform check using pattern window, (13) perform check using trace view window, (14) perform check using call graph window pp.56 to 61, 65, 66, 69, 70, 76, 80 to 83, 86 to 88, 90, 92, 95 to 98, 100, 103 to 106, 109, 111, 113, 115, 129, 132, 157, 164, 166 6.3 description of windows and dialog boxes ? modification of description on the following windows and dialog boxes az main window, az option dialog box, analyze window [task level], object select dialog box [task level], pattern search dialog box [task level], cpu window [task level], pattern set dialog box [task level], pattern window [task level], trace view window [task level], trace search dialog box [task level], analyze window [function level], pattern search dialog box [function level], object select dialog box [function level], trace search dialog box [function level], function search dialog box [function level], function detail information dialog box [function level] p.167 appendix a debugging method using az850 modification of description in (4) settings in dialog box pp.170 to 172 appendix b error message list ? addition of error messages (error numbers 1040, 1500, and 1700) ? deletion of error message (error number 1020) ? overall correction of description on other error messages the mark shows major revised points.
user's manual u14410ej4v0um 7 introduction target readers this manual is intended for users who wish to design and develop application systems using the v850 series tm . purpose this manual?s purpose is to help the user understand the functions and the operation method of the az850. organization this manual is organized as follows. ? outline ? instructions ? operation method ? trace form ? trace data ? window reference how to use this manual this manual assumes that the reader has general knowledge of microcontrollers, c language, assembly language, and debugging as well as basic knowledge of the windows operation method. to learn about the hardware functions and instruction functions of the v850 series: read the user?s manual for each product. ?rtos? is used as the representative product name in descriptions that are the same for the rx850 and the rx850 pro. if using the rx850, read ?rtos? as ?rx850,? and if using the rx850 pro, read ?rtos? as ?rx850 pro.? conventions < >: indicates a window or dialog box title. [ ]: indicates a menu. text : indicates a button in a window or dialog box. << >>: indicates a character string displayed in a window or dialog box. data significance: higher digits on the left and lower digits on the right memory map addresses: higher addresses on the top and lower addresses on the bottom active low representation: xxx (overscore over pin or signal name) note : footnote for item marked with note in the text caution : information requiring particular attention numerical representation: binary...xxxx or xxxxb decimal...xxxx hexadecimal...0xxxxx prefix indicating power of 2 (address space, memory capacity) k (kilo) 2 10 = 1024 m (mega) 2 20 = 1024 2
user's manual u14410ej4v0um 8 related documents please use the following documents in conjunction with this manual. the related documents listed below may include preliminary versions. however, preliminary versions are not marked as such. documents related to v850 series development tools (user?s manuals) document name document number ie-703002-mc (in-circuit emulator for v853 tm , v850/sa1 tm , v850/sb1 tm , v850/sb2 tm , v850/sf1 tm , v850/sv1 tm ) u11595e ie-v850e-mc (in-circuit emulator for v850e/ia1 tm , v850e/ia2 tm ), ie-v850e-mc-a (in-circuit emulator for v850e/ma1 tm , v850e/ma2 tm ) u14487e ie-703003-mc-em1 (in-circuit emulator option board for v853) u11596e ie-703017-mc-em1 (in-circuit emulator option board for v850/sa1) u12898e ie-703037-mc-em1 (in-circuit emulator option board for v850/sb1, v850/sb2) u14151e ie-703040-mc-em1 (in-circuit emulator option board for v850/sv1) u14337e ie-703079-mc-em1 (in-circuit emulator option board for v850/sf1) u15447e ie-703102-mc (in-circuit emulator for v850e/ms1 tm ) u13875e ie-703102-mc-em1, ie-703102-mc-em1-a (in-circuit emulator option board for v850e/ms1) u13876e ie-703107-mc-em1 (in-circuit emulator option board for v850e/ma1) u14481e ie-703116-mc-em1 (in-circuit emulator option board for v850e/ia1) u14700e operation to be prepared c language u16054e pm plus to be prepared ca850 ver.2.50 c compiler package assembly language u16042e id850 ver. 2.40 integrated debugger operation windows based u15181e sm850 ver. 2.40 system simulator operation windows based u15182e sm850 ver. 2.00 or later system simulator external part user open interface specifications u14873e basics u13430e installation u13410e rx850 ver. 3.13 or later real-time os technical u13431e basics u13773e installation u13774e rx850 pro ver. 3.13 real-time os technical u13772e rd850 ver. 3.01 task debugger u13737e rd850 pro ver. 3.01 task debugger u13916e az850 ver. 3.10 system performance analyzer this manual pg-fp4 flash memory programmer u15260e
user's manual u14410ej4v0um 9 contents chapter 1 outline ............................................................................................................. .......... 13 1.1 outline..................................................................................................................... ............... 13 1.2 functions and features...................................................................................................... .. 14 1.3 system configuration........................................................................................................ ... 15 1.3.1 when using debug monitor .................................................................................................. .......15 1.3.2 when using rom emulator................................................................................................... ......15 1.3.3 when using in-circuit emulator............................................................................................ ........16 1.3.4 when using simulator ...................................................................................................... ...........16 1.4 operating environment ....................................................................................................... .17 chapter 2 installation........................................................................................................ ..... 18 2.1 installation procedure ...................................................................................................... .... 18 2.2 directory configuration..................................................................................................... ... 19 2.2.1 nec compiler version .................................................................................................... ..............19 2.2.2 ghs compiler version .................................................................................................... ..............20 2.3 uninstallation procedure.................................................................................................... .. 21 chapter 3 operation method ................................................................................................ 22 3.1 az850 operation procedure................................................................................................. 22 chapter 4 trace forms........................................................................................................ .... 31 4.1 soft trace form............................................................................................................. ........ 32 4.1.1 monitor program (az monitor) creation flow.............................................................................. ...32 4.1.2 creating user own coding block .......................................................................................... .........33 4.1.3 creating az monitor ..................................................................................................... ................36 4.1.4 initializing az monitor................................................................................................. ..................37 4.1.5 definition of az monitor sections ....................................................................................... ..........38 4.1.6 az monitor embedding method ............................................................................................. .......39 4.2 hard trace form ............................................................................................................. ...... 40 4.2.1 in case of task-level trace using rx850/rx850 pro ....................................................................40 4.2.2 in case of function-level trace ......................................................................................... .............41 4.3 trace memory ................................................................................................................ ........ 44 chapter 5 trace data......................................................................................................... ...... 45 5.1 az trace data detection contents ...................................................................................... 45 5.2 debugging possible with az850.......................................................................................... 47 chapter 6 window reference ............................................................................................... 49 6.1 outline of windows and dialog boxes of az850 ............................................................... 49 6.2 relationships among az850 windows and dialog boxes ............................................... 51 6.3 description of windows and dialog boxes........................................................................ 52 appendix a debugging method using az850 ................................................................. 167 appendix b error message list.......................................................................................... 170 appendix c index.............................................................................................................. ........... 173 appendix d revision history ................................................................................................. 17 6
user's manual u14410ej4v0um 10 list of figures (1/2) figure no. title page 1-1 system configuration diagram (when using debug monitor)..................................................................15 1-2 system configuration diagram (when using rom emulator)..................................................................15 1-3 system configuration diagram (when using in-circuit emulator) ...........................................................16 1-4 system configuration example (when using simulator)......................................................................... .16 2-1 directory configuration (nec compiler version).............................................................................. ........19 2-2 directory configuration (ghs compiler version).............................................................................. ........20 3-1 az main window.............................................................................................................. .........................22 4-1 user own coding block (azusr.s/azusr.850) sample ............................................................................ ...33 4-2 timer counter operation example (in case of up counter) ....................................................................3 4 4-3 az monitor initialization description example............................................................................... ............37 4-4 example of description when using nec?s ca850 ............................................................................... ..38 4-5 example of description when using ghs?s ccv850/ccv850e..............................................................38 4-6 assembly language description example ....................................................................................... ........42 6-1 relationships among windows and dialog boxes of az850....................................................................51 6-2 az main window.............................................................................................................. .........................53 6-3 az option dialog box ........................................................................................................ .......................59 6-4 file select dialog box (open)............................................................................................... ....................62 6-5 analyze window (task level)................................................................................................. ..................66 6-6 analyze window (task level) (vertical line delete mode) ..................................................................... .71 6-7 analyze window (task level) (standard mode)................................................................................. ......72 6-8 analyze window (task level) (detailed mode) ................................................................................. .......73 6-9 object select dialog box (task level) ....................................................................................... ..............80 6-10 pattern search dialog box (task level)..................................................................................... ..............83 6-11 cpu window (task level).................................................................................................... ....................87 6-12 pattern set dialog box (task level)........................................................................................ .................92 6-13 pattern window (task level)................................................................................................ ....................97 6-14 pattern distribution viewing method (task level) ........................................................................... .........99 6-15 trace view window (task level) ............................................................................................. ..............103 6-16 az trace data viewing method (task level) .................................................................................. .......106 6-17 trace search dialog box (task level) ....................................................................................... ............109 6-18 trace search setting example (when searching task1 task) ............................................................110 6-19 trace search setting example (when searching locations for which task1 task has issued sta_tsk system call).......................................................................111 6-20 trace search setting example (when searching locations for which task1 task has issued sta_tsk system call to task2 task) ..............................................................111 6-21 analyze window (function level)............................................................................................ ...............112 6-22 analyze window (function level) (vertical line delete mode) ..............................................................11 6 6-23 analyze window (function level) (standard mode)............................................................................ ...116 6-24 analyze window (function level) (detailed mode) ............................................................................ ....117
user's manual u14410ej4v0um 11 list of figures (2/2) figure no. title page 6-25 measurement select dialog box (function level)............................................................................. ..... 124 6-26 pattern search dialog box (function level)................................................................................. .......... 127 6-27 object select dialog box (function level) .................................................................................. ........... 130 6-28 cpu window (function level)................................................................................................ ................ 133 6-29 pattern set dialog box (function level).................................................................................... ............. 140 6-30 pattern window (function level)............................................................................................ ................ 144 6-31 trace view window (function level) ......................................................................................... ............ 150 6-32 az trace data viewing method (function level) .............................................................................. ..... 152 6-33 trace search dialog box (function level) ................................................................................... .......... 155 6-34 when searching location where function ?_main? was executed....................................................... 156 6-35 when searching location where function ?_main? was called............................................................ 156 6-36 when searching location where function ?_main? executes i/o output to ?pm0? ............................... 157 6-37 call graph window (function level) ......................................................................................... ............. 158 6-38 standard mode (function level) ............................................................................................. ............... 159 6-39 total mode (function level) ................................................................................................ ................... 160 6-40 function search dialog box (function level) ................................................................................ ........ 163 6-41 function detail information dialog box (function level).................................................................... .... 165
user's manual u14410ej4v0um 12 list of tables table no. title page 4-1 relationship between trace form and debugging environment .............................................................31 5-1 detectable contents in case of task trace ................................................................................... ..........45 5-2 detectable contents in case of function trace ............................................................................... ........46 6-1 list of windows and dialog boxes of az850 ................................................................................... .........49 6-2 display file types and extensions ........................................................................................... ................63 6-3 list of marks on execution transition diagram (task level) (when rx850 embedded).........................73 6-4 list of marks on execution transition diagram (task level) (when rx850 pro embedded) ..................74 6-5 pattern search modes (task level) ........................................................................................... ..............84 6-6 pattern search conditions (task level) (when task switch is specified as search mode) ...................84 6-7 pattern search conditions (task level) (when system call (call, return, error) is specified as search mode) ...................................................85 6-8 pattern modes (task level).................................................................................................. ....................93 6-9 pattern conditions (task level) (when task switch is specified as search mode)................................93 6-10 pattern conditions (task level) (when ?system call (call, return, error) is specified as search mode)..................................................94 6-11 list of marks on execution transition diagram (function level)............................................................1 17 6-12 pattern search modes (function level) ...................................................................................... ...........128 6-13 pattern search conditions (function level) (when function call is specified as search mode)..........128 6-14 pattern search conditions (function level) (when function return is specified as search mode) .....128 6-15 pattern search conditions (function level) (when interrupt is specified as search mode) .................129 6-16 pattern search conditions (function level) (when interrupt return is specified as search mode)......129 6-17 pattern search conditions (function level) (when i/o access is specified as search mode) .............129 6-18 pattern modes (function level)............................................................................................. .................141
user's manual u14410ej4v0um 13 chapter 1 outline 1.1 outline as microprocessors become increasingly more powerful and sophisticated, user programs are also growing larger and more complex. although logic debugging of such user programs can easily be done with a conventional debugger, correcting bugs due to processing timing and performing time-related analysis such as total-system evaluation become very time consuming operations. in response to these market conditions, nec developed the v850 series, which is a powerful family of microprocessors included in the v800 series tm , and has now developed and released the az850 system performance analyzer, which is designed to support quantitative performance analysis of user programs. the az850 is a performance analysis tool for analyzing the execution transition status for applications created for the v850 series and applications that embed the rx850 or rx850 pro real-time os for the v850 series. by using the az850 with a debugger, it is possible to trace the occurrence of events (system calls, interrupts, etc.) and represent this data in a graphical format. the use of these functions enables easy analysis of the execution transition status of functions and tasks, as well as the status of access to various objects such as event flags and semaphores, which are functions of real-time oss. the specifications of the az850 conform to the tool interface protocol ( tip ), and as long as a debugger (even one not made by nec) that supports this interface is used, the functions of the az850 can easily be used.
chapter 1 outline user's manual u14410ej4v0um 14 1.2 functions and features the functions and features of the az850 are described below. ? graphical display of task execution transition status by displaying the execution transition status for tasks and interrupts (horizontal axis = time, vertical axis = function name/task name, etc.), system status changes caused by function call/recovery, task switching, the occurrence of interrupts, etc., can easily be analyzed. since the status of access to each object as the result of the issue of system calls is displayed in symbol form, the transition of functions, the task execution sequence, and status transitions can easily be understood. ? graphical display of cpu use time the execution efficiency of the entire system can be grasped by displaying the cpu use status in a specified time range. ? processing time statistics the worst value, average value, etc., can be obtained by performing frequency calculations of the processing execution time for user programs. ? linked operation with debugger window it is possible to jump from the az850 window to windows displaying source text, disassemble text, and memory capacity, allowing easy identification of problems. the az850 provides the following two trace forms, allowing the selection of the best method for the debugging environment employed by the user. ? soft trace form a monitor function is provided on the target system, and az trace data is collected using a monitor program note . note the monitor program must be prepared according to the environment employed by the user. refer to section 4.1 soft trace form. ? hard trace form az trace data is collected using the trace function of an in-circuit emulator or simulator. note that, the soft trace form is not supported for function trace in the current az850. only hard trace is supported. moreover, the function trace function cannot be used with an nec in-circuit emulator and the id850. when using the function trace function, use the sm850 simulator.
chapter 1 outline user's manual u14410ej4v0um 15 1.3 system configuration the az850 expands the debugger functions by transmitting debugger and tip specification messages. various az850 system configurations are shown for the debugging environments that can be used. 1.3.1 when using debug monitor figure 1-1 system configuration diagram (when using debug monitor) host machine pc target system (with monitor) compiler real-time os az850 tip debugger communication caution one unused timer counter is required on the target system. 1.3.2 when using rom emulator figure 1-2 system configuration diagram (when using rom emulator) rom emulator az850 tip debugger caution one unused timer counter is required on the target system.
chapter 1 outline user's manual u14410ej4v0um 16 1.3.3 when using in-circuit emulator figure 1-3 system configuration diagram (when using in-circuit emulator) host machine (pc) target system in-circuit emulator compiler real-time os az850 tip debugger communication cautions 1. when using the az850 with the soft trace form, the az monitor must be linked to the load module. moreover, one unused timer counter is required on the target system. 2. currently, it is not possible to perform function trace with the az850 using an nec in-circuit emulator (ice) and the id850. task trace, however, can be performed. 1.3.4 when using simulator figure 1-4 system configuration example (when using simulator) host machine (pc) compiler real-time os az850 tip debugger communication caution when using the az850 with the soft trace form, the az monitor must be linked to the load module. moreover, one unused timer counter is required on the target system.
chapter 1 outline user's manual u14410ej4v0um 17 1.4 operating environment when using the az850, an environment in which a debugger can operate is required. (1) host machine pc-9821 series, pc98-nx series, or ibm-pc/at compatibles that support the following oss ? os: windows 98 second edition, windows me, windows nt tm 4.0 workstation, windows 2000 professional, windows xp professional ? screen size: 640 400 pixels or more (800 600 pixels or more recommended) (2) software ? c compiler package ca850 ver. 2.41: made by nec ccv850/ccv850e: made by green hills software tm , inc. caution function-level trace is supported only by the ca850. ? real-time os rx850 ver. 3.13 or later rx850 pro ver. 3.13 or later ? debugger tip debugger (3) rom emulator rom emulator that can be connected to tip debugger (4) in-circuit emulator in-circuit emulator that can be connected to tip debugger (5) simulator tip simulator
user's manual u14410ej4v0um 18 chapter 2 installation this chapter describes how to install and uninstall the az850. 2.1 installation procedure this section describes how to install the az850. once the az850 has been installed once, to install it again, it is necessary to uninstall it first. the supply medium for the az850 is one cd-rom each for the object release version and the source release version. ? installation directory: c:\nectools32 ? cd drive: q drive ? directory to which windows is to be installed: b: \windows the installation procedure is described below. <1> start windows. <2> insert the cd-rom in the cd drive (q drive). the setup program then starts automatically. if the setup program fails to start automatically, manually start it by starting explorer and double-clicking ?setup.exe? in the az850\disk1 folder in the q drive. perform installation in accordance with the messages displayed on the screen. <3> make sure that the files stored in the az850 supply media have been installed in the host machine by using windows explorer, etc. for details of each directory, refer to 2.2 directory configuration .
chapter 2 installation user's manual u14410ej4v0um 19 2.2 directory configuration this section describes the directory configuration of the files that have been read from the supply medium in the process of installing the az850. 2.2.1 nec compiler version figure 2-1 directory configuration (nec compiler version) installation directory default = ?nectools32? bin az850 execution format file (az850.exe) hlp online help lib850 r22 r26 r32 az monitor common part (for 22-register mode) file name: azcore.o az monitor common part (for 26-register mode) file name: azcore.o az monitor common part (for 32-register mode) file name: azcore.o smp850 az850 sample files for monitor program file name description azmon.lnk link directory for az monitor creation azmon.o az monitor (for rx850) azmon_p.o az monitor (for rx850 pro) azusr.s source program of user own coding block of az monitor mkmon.bat file for az monitor creation
chapter 2 installation user's manual u14410ej4v0um 20 2.2.2 ghs compiler version figure 2-2 directory configuration (ghs compiler version) installation directory default = ?nectools32? bin az850 execution format file (az850.exe) hlp online help lib850_ghs r22 r26 r32 az monitor common part (for 22-register mode) file name: azcore.o az monitor common part (for 26-register mode) file name: azcore.o az monitor common part (for 32-regiser mode) file name: azcore.o smp850_ghs az850 sample files for monitor program file name description azmon.lnk link directory for az monitor creation azmon.o az monitor (for rx850) azmon_p.o az monitor (for rx850 pro) azusr.s source program of user own coding block of az monitor mkmon.bat file to az monitor creation
chapter 2 installation user's manual u14410ej4v0um 21 2.3 uninstallation procedure this section describes how to uninstall components. <1> start windows. <2> activate ?add/remove application? (?add or remove programs? in the case of windows xp) in the control panel and select the item to be uninstalled (?nec az850 -- analyzer execution format?, etc.). then execute uninstallation.
user's manual u14410ej4v0um 22 chapter 3 operation method this chapter describes the operation method for the az850. 3.1 az850 operation procedure the basic operation method when using the az850 is described in sequence below. (1) start debugger start the debugger to be used. (2) start az850 start the az850. the main window appears. at this time, check if <> appears in the status display area. if <> is displayed, the connection with the debugger has been successfully performed. figure 3-1 az main window (a) tool bar (b) status bar (3) download load module download the load module prepared for the az850 to the debugger.
chapter 3 operation method user's manual u14410ej4v0um 23 (4) perform settings in az option dialog box open the dialog box and set the following options in that dialog box. to open the dialog box, click the button. (a) address mask specification area (b) real-time os selection area (c) trace form specification area (d) trace buffer type specification area (e) trace buffer area specification area (f) trace level specification area (a) address mask specification area (address mask) specify the upper limit value of the physical address space on the chip. for details, refer to chapter 6 window reference . (b) real-time os selection area (rtos select) to perform trace at the task level, select either the rx850 or the rx850 pro as the real-time os to be used.
chapter 3 operation method user's manual u14410ej4v0um 24 (c) trace form specification area (trace form) specify the trace form for az trace, either soft trace form <> or hard trace form <>. the default is hard trace form. however, if the debugger that is connected does not support the hard trace form, the default is the soft trace form. for details about the soft trace form and hard trace form, refer to sections 4.1 and 4.2. (d) trace buffer type specification area (sort form buffer type) to select the soft trace form, select either a fixed buffer <> or ring buffer <> as the buffer type to load trace data. ? if fixed buffer is selected when the trace buffer becomes full, trace collection stops. therefore, the trace data up to the location where the program execution was stopped is not necessarily loaded. ? if ring buffer is selected when the trace buffer becomes full, the trace data gets overwritten starting from the oldest data. (e) trace buffer region specification area (sort form buffer region) specify the <> and the <> of the trace buffer region. if the soft trace form has been selected, the trace data collected by the az850 is stored once in the target memory. thus, it is necessary to specify an unused area in the target memory. also, set the start address and end address so that the size of the area is in the range of 4 kb to 4 mb. (f) trace level specification area (trace level) if hard trace form has been selected, set the trace level for the az trace data to be collected. ? if only the task level ( task level ) has been selected the az trace data at the task level is collected. ? if only the function level ( func. level ) has been selected the az trace data at the function level is collected. ? if both the task and function levels have been selected both az trace data at the task level and az trace data at the function level are collected. however, in the case of the soft trace form, this setting is fixed to ?task level?.
chapter 3 operation method user's manual u14410ej4v0um 25 (5) select measurement target in the main window, select [option (p)], [select measurement target (m )], [function level (f )]. the dialog box for function level measurement target selection appears. in this dialog box, select the module to be measured. note that this setting is ignored in the case of task-level trace. (6) switch to az trace mode to enable the trace function of the az850, set ?az trace on?. (to do this, select [operation (o)], [az trace on (o)].) this setting allows the collection of trace data at the az task level or function level. caution the az trace on setting cannot be performed until downloading of the load module has been completed. (7) execute user program execute the user program on the debugger. the trace data for the az850 starts being collected in the trace buffer when execution of the user program begins. (8) stop user program stop the user program on the debugger. (if a breakpoint has been set, it is maintained until the break.) collection of trace data for the az850 stops at the same time that the user program is stopped. (9) upload trace data after stopping the application program, click the button on the tool bar in the main window to upload the collected trace data to the az850.
chapter 3 operation method user's manual u14410ej4v0um 26 (10) perform check using analyze window open the and check the collected az trace data with execution transition diagrams for individual tasks. (a) to display execution transition diagrams... from the menu bar in the , main window select [browse (b)], [execution transition (z )], [task level (t)], or click the button on the tool bar. (b) to check the operation of an object... check the operation of the specified object using the ?simple search button? displayed by clicking an object name. (c) to check the transition status of a task or interrupt... from the dialog box displayed from this window, search the switching point of a specific task, the location where an interrupt has occurred, or the location where a specific system call has occurred. the search result is displayed in the execution transition diagram. (d) to analyze the processing time for a task or interrupt... from the dialog box displayed from this window, perform search or analysis of the set pattern (specific processing). the search result is displayed in the execution transition diagram. the distribution status according to the set pattern processing time is displayed in the .
chapter 3 operation method user's manual u14410ej4v0um 27 (11) perform check using cpu window from the , check the cpu use status within the defined interval. (a) to display the cpu utilization rate set the up cursor and down cursor to define the interval for which the cpu utilization rate is to be measured in the execution transition diagram. the cpu utilization rate is measured during the interval indicated with the up cursor and down cursor. after setting the cursors, display the . to open this window, click the button. remark if the is active, moving the up cursor or the down cursor in the task level execution transition diagram causes automatic update of the cpu utilization rate.
chapter 3 operation method user's manual u14410ej4v0um 28 (12) perform check using pattern window from the , check the execution time distribution status of the specified pattern. (a) to display the pattern distribution... [display of any pattern] <1> in the , set the up cursor and down cursor to define the interval for which the pattern distribution status is to be tabulated. <2> from the menu bar in the , select [browse (b)], [patter distribution (p )], or click the button on the tool bar. <3> in the dialog box that is automatically displayed, click the ok button after setting the conditions for the pattern for which tabulation is to be performed. [display of pattern from cpu window] <1> in the , set the up cursor and down cursor to define the interval for which the pattern distribution status is to be tabulated. <2> from the menu bar in the , after selecting an object from the list, select [jump (j)], [pattern distribution (p)], or click the button on the tool bar. the pattern distribution displayed with this method consists of data tabulated in the specified object- processing interval (mode using switching of specified object as start point/end point). remark if the is active, moving the up cursor or the down cursor in the task level execution transition diagram causes automatic update of the pattern distribution contents.
chapter 3 operation method user's manual u14410ej4v0um 29 (13) perform check using trace view window from the , perform an even more detailed check of the collected az trace data. (a) to display az trace data... move the up temporary cursor that the desired position in the execution transition diagram. if the up temporary cursor is not displayed, the first trace data becomes the display start position. after setting the cursor, open the . remarks 1. if the is active, moving the up cursor in the task level execution transition diagram causes automatic update of the az trace data display start position. 2. when the soft trace form is used, the contents of the trace buffer are cleared by newly setting az trace on.
chapter 3 operation method user's manual u14410ej4v0um 30 (14) perform check using call graph window select [browse (b)], [call graph (g )] in the to open the . in this window, check the function call configuration. function search combo box scale change box call graph display area then continue debugging by repeating steps (6) to (14) as needed.
user's manual u14410ej4v0um 31 chapter 4 trace forms this chapter describes the two trace forms supported by the az850. the trace forms supported by the az850 are the soft trace form and the hard trace form. the soft trace form provides a monitor program on the target system, and performs trace linking programs that have a monitor function for user programs. the hard trace form uses a trace function with an in-circuit emulator or simulator, and enables tracing without any modification to user programs. the az850 is used by selecting one of these two trace forms according to the user?s debugging environment. table 4-1 relationship between trace form and debugging environment trace form debugging environment soft trace form hard trace form debugging monitor rom emulator in-circuit emulator simulator note that the soft trace form in the case of function tracing is not supported by the az850 at present. only the hard trace form is supported in this case. moreover, if the compiler is a ghs version compiler, the function trace form cannot be used. the soft trace form and the hard trace form are described in detail below.
chapter 4 trace forms user's manual u14410ej4v0um 32 4.1 soft trace form the soft trace form provides a monitor function on the target system, and collects az trace data using a monitor program. when the az850 is used with this method, the trace data is saved to the user memory area specified in the dialog box. the monitor program used in the soft trace form must be prepared according to the user?s environment. the procedure for preparing this monitor program is described below. the soft trace form supports only task-level trace and cannot be used for function-level trace. in other words, this method can be used only for applications that use the rx850 or rx850 pro . 4.1.1 monitor program (az monitor) creation flow when the az850 is used with the soft trace form, the az850 collects az trace data using a monitor program (az monitor). the time information that is required at this time is obtained by using the user?s target timer counter for the az850. in other words, a single timer counter dedicated to the az850 is used. as a result, the control block of this timer counter must be coded according to the target employed by the user (user own coding block) to complete the az monitor. the az monitor creation flow is as follows. <1> create the source for the user own coding block for the monitor (nec version: azusr.s, ghs version: azusr.850). <2> assemble the source prepared in <1> to create azusr.o. <3> link the object prepared in step <2> and the monitor common part to create the az monitor (azmon.o). azmon.o created in step <3> becomes the az monitor. the soft trace form can be realized by linking this object to the user program.
chapter 4 trace forms user's manual u14410ej4v0um 33 4.1.2 creating user own coding block the control block of the timer counter of the target that is used must be coded. a sample user own coding block is shown in the following directory. use it as reference when creating the user own coding block. ? when using nec?s ca850 nectools32 \ smp850 \ az850 \ azusr.s ? when using ghs?s ccv850/ccv850e nectools32 \ smp850_ghs \ az850 \ azusr.850 the sample is as follows. figure 4-1 user own coding block (azusr.s/azusr.850) sample .globl __azmon_maxcount .globl __azmon_countmode .globl __azmon_timepercount .globl __azmon_inittimer .globl __azmon_getcounter .text .align 4 __azmon_maxcount: .word maxcountvalue ?maximum timer count value .text .align 4 __azmon_countmode: .byte countmode ? timer count mode .text .align 4 __azmon_timepercount: .float timepercount ? time per count (unit: sec) .text .align 4 __azmon_inittimer: the-code-of- inittimer ? timer?s initialization processing code jmp [lp] .text .align 4 __azmon_getcounter: the-code-of-getcounter ? timer?s count value acquisition processing code jmp [lp]
chapter 4 trace forms user's manual u14410ej4v0um 34 the user own coding block data and function specifications are described below. figure 4-2 provides an example of the timer counter specifications. figure 4-2 timer counter operation example (in case of up counter) clear & start timer count start interval time tpc count value = n count value = 0
chapter 4 trace forms user's manual u14410ej4v0um 35 name type description __azmon_maxcount data specifies the maximum timer count value (n value in figure 4-1). data type: specified with 4-byte integer format (.word) __azmon_countmode data specifies timer count mode. data type: specified with 1-byte integer format (.byte) data setting value: 0x00 ? up counter 0x01 ? down counter __azmon_timepercount data specifies the time per count in microsecond units ( sec) (tpc value in figure 4- 1). data type: specified with 4-byte floating-point format (.float). __azmon_inittimer function specifies timer initialization processing. input register: ip ? return address output register: none destructible register: depends on c language calling restrictions. __azmon_getcounter function specifies timer counter value get processing. input register: ip ? return address output register: r10 ? counter value destructible registers: r1, r11 cautions 1. if the id.h instruction is used during timer counter value get processing (_ _azmon_getcounter), the r10 value gets expanded to 4 bytes. for this reason, it is necessary to mask this value using the andi instruction. example ld.h 0[r1], r10 andi 0xffff, r10, r10 2. the accuracy when performing display as az trace data depends on the _ _azmon_timepercount value (tpc value in figure 4-1). in the case of a timer counter that takes 1 s to count up 1 unit, the time unit displayed by the az850 is 1 s. 3. if the event interval for the collected az trace data is longer than the interval time of the timer counter, the correct time cannot be displayed.
chapter 4 trace forms user's manual u14410ej4v0um 36 4.1.3 creating az monitor after creating the user own coding block, complete the az monitor (azmon.o) using the method indicated below. the following commands must be input at the ms-dos prompt. (1) when using nec?s ca850 <1> assemble azusr.s to create azusr.o as850 -cpu cpu name ?cn -o azusr.o azusr.s remark input the name of the cpu that is used for the cpu name. for instance, in the case of the v853, this would be 3003. <2> link azusr.o and azcore.o to create azmon.o [when using rx850] ld850 ?r -d azmon.lnk ?o azmon.o ..\..\lib850\r**\azcore.o azusr.o remark r** is either r22, r26, or r32 . select r** according to the register mode that is used. [when using rx850 pro] ld850 ?r -d azmon.lnk ?o azmon.o ..\..\lib850\r32\azcore_p.o azusr.o it is also possible to create the az monitor by using mkmon.bat in the nectools32 \ smp850 \ az850 directory. however, it is necessary to modify the tool path in mkmon.bat according to the development environment that is used. (2) ghs?s ccv850/ccv850e <1> assemble azusr.850 to create azusr.o ccv850 ( or ccv850e) ?c ?o azusr.o azusr.850 <2> link azusr.o and azcore to create azmon.o [when using rx850] lx ?r ?o azmon.o ..\..\lib850\r**\azcore.o azusr.o remark r** is either r22, r26, or r32. select r** according to the register mode that is used. [when using rx850 pro] lx ?r ?o azmon.o ..\..\lib850\r32\azcore_p.o azusr.o it is also possible to create the az monitor by using mkmon.bat in the nectools32 \ smp850 \ az850 directory. however, it is necessary to modify the tool path in mkmon.bat according to the development environment that is used.
chapter 4 trace forms user's manual u14410ej4v0um 37 4.1.4 initializing az monitor the az monitor must be initialized before it is operated. initialization of the az monitor must be performed prior to starting up the rx850 or rx850 pro. it is recommended to perform initialization in the initialization handler ( ? init_handler() ? in the case of the rx850, and ? varfunc() ? ) in the case of the rx850 pro). the az initialization routine ? azlnit() ? is provided for initializing the az monitor. call azlnit() in init_handler() or varfunc(). azlnit() is a function without return value and argument. figure 4-3 shows an example of describing the initialization block of the az monitor. figure 4-3 az monitor initialization description example void init_handler() } /* * initialize az moniter */ azinit(); return; }
chapter 4 trace forms user's manual u14410ej4v0um 38 4.1.5 definition of az monitor sections in the case of soft trace, az monitor sections must be prepared. these sections must be defined in a link directive file (section map file). the section names for the az monitor are as follows. section name description placement attribute size .azmon_b az monitor work area bss 40 bytes .azmon_t az monitor text/data area text approx. 900 bytes an example of the link directive file (section map file) when these areas are defined is shown below. figure 4-4 example of description when using nec?s ca850 : text:!load?rw v0x00001000{ .text =$progbits ?aw .text; .azmon_t =$progbits ?aw .azmon_t; }; data:!load?rw v0x00100000{ .data =$progbits ?aw .data; .sdata =$progbits ?awg .sdata; .sbss =$nobits ?awg .sbss; .bss =$nobits ?aw .bss; .azmon_b =$nobits ?aw .azmon_b; }; : figure 4-5 example of description when using ghs?s ccv850/ccv850e : .text 0x00001000 : .azmon_t : .data 0x00010000 : .sdata : .sbss : .bss : .azmon_b : :
chapter 4 trace forms user's manual u14410ej4v0um 39 4.1.6 az monitor embedding method the az monitor embedding method is described below. az monitor ? azmon.o ? is linked according to objects obtained by compiling/assembling user programs, libraries required by rx850 or rx850 pro applications, and link directive file (section map file) defined in the az monitor section as described in section 4.1.2. when the rx850 is used, define ? trace information ? in the configuration file. for details about the configuration file, refer to rx850 instruction user?s manual (u13410e) .
chapter 4 trace forms user's manual u14410ej4v0um 40 4.2 hard trace form the hard trace form uses the trace function of an in-circuit emulator or simulator to collect az trace data. when the az850 is used with this method, the trace data is stored in the debugger?s trace buffer area. in the case of the hard trace form, tracing can be performed without adding monitor or other programs to the user application. the hard trace execution methods for task-level trace and function-level trace using the rx850 or rx850 pro are described below. 4.2.1 in case of task-level trace using rx850/rx850 pro when performing task-level trace with hard trace, it is not necessary to provide information for getting trace data in the application program, because az trace information is described in the nucleus of the rx850 and rx850 pro itself. it is not particularly necessary to perform linking of az trace objects when creating applications. however, when using the rx850, define ?trace information? in the configuration file. for details about the configuration file, refer to the rx850 instruction user?s manual (u13410e) . the following cautions must be observed. (1) regarding setting of events on debugger in the case of the hard trace form, the az850 uses the debugger?s trace conditions. thus, if many trace conditions are used on the debugger side, it may not be possible to perform az trace mode settings. the trace condition of the debugger used by the az850 is as follows. [trace condition] qualify trace condition (for write access): 1 (2) regarding time accuracy in the case of the hard trace form, the time accuracy is the same as the time accuracy for the time lag of trace data for the trace function on the debugger side. the az850 calculates the task execution time from the cpu?s system clock. therefore, if the system clock is set to the stop mode or the idle mode, time information is not guaranteed.
chapter 4 trace forms user's manual u14410ej4v0um 41 4.2.2 in case of function-level trace caution currently, function tracing with the az850 using nec?s in-circuit emulator (ice) and the id850 is not possible. if using the function trace function, use the sm850 simulator. in the case of function-level trace, it is necessary to provide information for getting trace data in the application program. if the application is written in c language, az trace information can be output by attaching the ?-g option? and the ?-xaz option? for nec?s ca850 c compiler. thus, it is not necessary to add descriptions to c source programs. however, the ccv850 and ccv850e c compilers made by ghs do not provide an az trace output option, so that it is not possible to perform function level tracing. if the application is described in assembly language, it is necessary to add the following descriptions to the program. ? specify ? .globl ? and ? .frame ? for labels indicating beginning of function ? describe ? .option az_info_j ? immediately before instructions performing system calls ? describe ? .option az_info_r ? immediately before instructions performing function return ? describe ? .option az_info_ri ? immediately before instructions ending interrupt processing figure 4-6 shows an example of description in assembly language.
chapter 4 trace forms user's manual u14410ej4v0um 42 figure 4-6 assembly language description example .globl _func, 4 ? function definition .frame _func, 4 _func: ? beginning of function : : .option az_info_j ? description addition jarl _funcl, lp ? function call processing : : mov #_func2, r11 mov #l1, lp .option az_info_j ? description addition jmp [r11] ? function call processing l1: : : .option az_info_j ? description addition jmp [lp] ? function return processing _intr: ? beginning of interrupt handler : : .option az_info_j ? description addition reti ? interrupt end processing when creating an application, it is not particularly necessary to link az trace objects. the following cautions about debugging must be observed. (1) memory mapping when using the v850e in-circuit emulator (ice) with nec ? s id850 debugger, function-level tracing can be performed only in the internal rom space. note that function-level tracing cannot be performed for programs mapped to external memory.
chapter 4 trace forms user's manual u14410ej4v0um 43 (2) number of set events on debugger in the case of the hard trace form, the az850 uses the trace conditions of the debugger. as a result, if many trace conditions are used on the debugger side, it may not be possible to set the az trace mode. the trace conditions and expanded trace conditions of the debugger used by the az850 are as follows. [trace conditions] qualify trace conditions (for write access): 3 [expanded trace conditions] when using nec ? s id850 debugger: use all tag memories when using nec ? s sm850 simulator: use all event memories (3) time accuracy in the case of the hard trace form, the time accuracy is the same as the time accuracy for the time lag of trace data for the trace function on the debugger side. the az850 calculates the task execution time from the cpu ? s system clock. therefore, if the system clock is set to the stop mode or the idle mode, time information is not guaranteed.
chapter 4 trace forms user's manual u14410ej4v0um 44 4.3 trace memory the memory area that is used for az trace and the trace memory clear timing are as follows. ? ? ? ? soft trace form [used memory area] set the trace memory area when initializing the az monitor. [trace memory clear] the contents of the trace memory are cleared by again setting ? az trace on ? after switching from ? az trace on ? to ? az trace off ? . (if the user program has been reexecuted without clearing the trace memory, the data following the trace data written the previous time is written to the trace memory, and when the trace memory becomes full, trace data collection stops.) ? ? ? ? hard trace form [used memory area] use the trace memory area of the debugger. [trace memory clear] the previously collected trace data is cleared every time the user program is executed.
user's manual u14410ej4v0um 45 chapter 5 trace data this chapter describes the az trace data detection locations and contents, and the contents that can be guaranteed when using the az850. 5.1 az trace data detection contents the locations that can be detected as az trace data and their contents are described below. (1) task level table 5-1 detectable contents in case of task trace detected location detected contents system call entry time execution system call name system call output address system call target object id system call exit time system call return value interrupt entry time interrupt source code interrupt occurrence address interrupt exit time task switch time id of task to which operation will shift (or idle status) task starter time task entry address however, the items listed below cannot be detected as az trace data. ? exceptions (trap instruction, cpu exceptions such as illegal instruction code) ? cyclic startup handler start and end ? system call (ext_tsk, exd_tsk, ret_int, ret_wup) output address
chapter 5 trace data user's manual u14410ej4v0um 46 (2) function trace table 5-2 detectable contents in case of function trace detected location detected contents function call time output address start address of call destination function function return time return address return address of call destination interrupt entry time interrupt occurrence address start address of interrupt handler interrupt exit time return address return address of interrupt handler i/o access time i/o address data access status (read/write) however, the items listed below cannot be detected as az trace data. ? interrupt occurrence addresses when an interrupt occurs ? return addresses upon reti instruction ? execution addresses upon i/o access
chapter 5 trace data user's manual u14410ej4v0um 47 5.2 debugging possible with az850 the types of debugging that are possible using the functions of the az850 are described below. for details about the operation method, refer to the window descriptions in chapter 6 window reference . (1) verification using the this window displays the collected az trace data using execution transition diagrams. verification/analysis of system errors and of the entire system can be performed from this window and the various windows that are displayed from it. ? checking the system call issue status in addition to execution transition diagrams showing the system flow with the name/interrupt name as the vertical axis, the system calls supplied by the real-time os are shown using various marks. furthermore, it is possible to select specific locations within az trace data by opening the window from any marked point. ? checking object operation the operation of specified objects (functions, tasks, interrupts, etc.) can be searched on execution transition diagrams. ? searching the occurrence location of specific events the ?certain event? set in the dialog box can be searched on execution transition diagrams. searching the switching location for particular tasks, locations where an interrupt has occurred, and locations where a particular system call has been issued can easily be done by using this function. ? jumping to debugger window from a given location the windows displaying source text/disassemble text/memory contents corresponding to tasks/interrupts specified with the up temporary cursor in the execution transition diagram can be opened on the debugger.
chapter 5 trace data user's manual u14410ej4v0um 48 (2) verification using the the pattern (particular processing) set with the dialog box is searched in the execution transition diagram and the distribution status of that pattern is displayed in this window. it is possible to obtain the worst execution time value and average execution time value for user program processing from this window. ? histogram display of function/task/interrupt processing time the tabulated results for the searched pattern are displayed in histogram form with the execution time interval as a parameter. ? search using function/task/interrupt processing time pattern locations where the execution time interval is maximum or minimum are searched in the processing time of the searched pattern and the results of this search are displayed in the execution transition diagram. this enables the easy search of locations where particular patterns are processed. (3) verification using the this window displays the cpu usage status in the time range specified in the execution transition diagram. from this window, it is possible to check the execution time of given tasks/interrupts and evaluate the performance of the target data from the idle time and interrupt time. ? check of execution time of given function/task/interrupt, or check of cpu usage percentage ? check of function/task execution time percentages within time interval for which data is collected ? check of system execution time percentages within time interval for which data is collected (4) verification using the this window displays in list form the collected az trace data contents. ? checking az trace data in addition to the processing time, execution addresses, and executed task/interrupt name, the system call issue status provided by the real-time os is displayed, enabling even finer debugging in task units. ? verification of function name/task name/event type/system call argument name it is possible to perform searches using conditions such as task name, interrupt name, event type, system call argument name, etc.
user's manual u14410ej4v0um 49 chapter 6 window reference this chapter describes in detail the functions of the windows and dialog boxes of the az850. 6.1 outline of windows and dialog boxes of az850 table 6-1 shows the windows and dialog boxes of the az850. table 6-1 list of windows and dialog boxes of az850 [common window] window/dialog box name description page az850 main window window for performing basic operations of the az850 p.53 az option dialog box trace form and trace level settings p.59 file select dialog box loading and saving of contents displayed in az850 windows to ?display file? p.62 [task-level window] window/dialog box name description page analyze window display of execution transition diagram of collected az trace data p.65 object select dialog box selection of shown objects and specification of sequence changes in execution transition diagram p.80 pattern search dialog box search condition settings in execution transition diagram and search using these conditions p.83 cpu window display of cpu usage status in time interval specified in execution transition diagram p.87 pattern set dialog box settings for patterns displayed in p.92 pattern window histogram display of the results summed up by execution time width of appearance ratio for specification pattern in execution transition diagram. p.96 trace view window list display of collected az trace data p.103 trace search dialog box setting of search conditions in and search under these conditions p.109
chapter 6 window reference user's manual u14410ej4v0um 50 [function-level window] window/dialog box name description page analyze window display of execution transition diagram of collected az trace data p.112 measurement select dialog box selection of object to be measured when az trace data is collected p.124 pattern search dialog box search condition settings in execution transition diagram and search using these conditions p.127 object select dialog box selection of shown objects and specification of sequence changes in execution transition diagram p.130 cpu window display of cpu usage status in time interval specified in execution transition diagram p.133 pattern set dialog box settings for patterns displayed in p.140 pattern window histogram display of the results summed up by execution time width of appearance ratio for specification pattern in execution transition diagram. p.143 trace view window list display of collected az trace data p.150 trace search dialog box setting of search conditions in and search under these conditions p.155 call graph window display of diagram indicating the relationship between caller functions and callee functions in a zone between the up cursor and down cursor on the execution transition diagram p.158 function search dialog box search of function/interrupt name in the p.163 function detail information dialog box display of detailed information on the parent function, source function, and child function displayed in the . p.165
chapter 6 window reference user's manual u14410ej4v0um 51 6.2 relationships among az850 windows and dialog boxes figure 6-1 shows the relationships among the windows and dialog boxes of the az850. figure 6-1 relationships among windows and dialog boxes of az850 ... window ... dialog box az main window az option dialog box analyze window (task level) analyze window (function level) file select dialog box <1> <2> object select dialog box pattern search dialog box cpu window file select dialog box pattern set dialog box pattern window file select dialog box pattern set dialog box trace view window file select dialog box trace search dialog box <1> pattern search dialog box object select dialog box cpu window file select dialog box pattern set dialog box pattern window file select dialog box pattern set dialog box trace view window file select dialog box trace search dialog box call graph window file select dialog box function search dialog box function detail information dialog box <2> measurement select dialog box
chapter 6 window reference user's manual u14410ej4v0um 52 6.3 description of windows and dialog boxes the windows and dialog boxes are described using the following format. window/dialog box name [task level/function level] [window/dialog box name] [outline] outlines the function of the window or dialog box, and describes how to open it. [window] shows a picture of the window or dialog box screen. [function] describes in detail the function of the window or dialog box. [function buttons] describes the operation of the buttons in the window or dialog box, detailing which item the button operation affects and what happens when the button is clicked. [menu bar] lists the menu items displayed when the described menu bar item is clicked, and the function of each of the items thus displayed. [caution] describe cautions applying to the operation of the window or dialog box. [error] describes the errors or the warnings that may occur when operating the window or dialog box.
chapter 6 window reference user's manual u14410ej4v0um 53 az main window [az850] [outline] this window, which opens automatically after the az850 is started up, is used to perform basic operations of the az850. when using the az850, start operations from this window. [window] figure 6-2 az main window (a) tool bar (b) status bar [function] this section describes the following item. (1) description of each area (1) description of each area (a) tool bar the tool bar consists of buttons used to execute menu items that are used relatively frequently. ? ? ? ? dialog box display button this button opens the dialog box. specify the desired options to be used when performing az trace in this dialog box. ? ? ? ? [az trace on/off] button this is a toggle button that enables/disables the az850 trace function. az trace data can be collected by setting ?az trace on?.
chapter 6 window reference user's manual u14410ej4v0um 54 cautions 1. to set ?az trace on?, the az850 must be in the following status. ? ? ? ? in case of soft trace both rtos and az monitor must have been downloaded ([rx+az loaded] displayed on status bar) ? ? ? ? in case of hard trace when both rtos and az monitor have been downloaded at the task level ([rx+az loaded] displayed on the status bar), when an application program including function information is loaded in the debugger ([fncinfo loaded] displayed on the status bar), or when rtos and an application program including function information have been loaded ([rx/fncinfo loaded] is displayed on the status bar) 2. when using the soft trace form, the trace memory contents are cleared by again setting ?az trace on? after switching from ?az trace on? to ?az trace off?. ? ? ? ? [upload] button clicking this button causes the trace data obtained by executing the user program to be uploaded and from the trace memory and converted to az trace data. cautions 1. when the is open, clicking this button causes the execution transition diagram to be updated to the latest az trace data. 2. this button cannot be selected if there is no trace data in the trace memory. ? ? ? ? display button this button is used to open the task-level . the execution transition diagrams of individual tasks can be checked from this window. ? ? ? ? display button this button is used to open the function-level . the execution transition diagram of individual functions can be checked from this window. (b) status bar this area displays the various statuses of the az850. ? ? ? ? connection status display area (1st from the left) indicates the status of connection with the debugger. connected: the az850 is connected to the debugger. not connected: the az850 is not connected to the debugger. ? ? ? ? load module status display area (2nd from the left) displays the load module status uploaded from the debugger. this area does not indicate whether the az850 is unconnected to the debugger.
chapter 6 window reference user's manual u14410ej4v0um 55 rx+az loaded status where both rtos and az monitor have been downloaded (in case of soft trace form) rx loaded status where rtos has been downloaded (in case of hard trace form) fncinfo loaded status where function information is loaded rx+az/fncinfo loaded status where rtos, az monitor, and all function information have been downloaded (in case of hard trace form) rx/fncinfo loaded status where both rtos information and function information have been downloaded (in case of hard trace) rx+az/fncinfo none status where only one or none of rtos information, az monitor, or function information has been downloaded (in case of hard trace form) rxfncinfo none status where either or none of rtos information and function information has been downloaded (in case of hard trace form) ? ? ? ? load module execution status display area (3rd from left) displays the user program execution status. this area does not show whether the az850 is unconnected to the debugger. running: status of user program being executed breaked: status of user program operation undergoing break ? ? ? ? trace mode status display area (4th from left) displays az trace on/off. this area does not display whether the az850 is unconnected to the debugger and whether load module download (download of required symbol information) has been completed. az trace on: status where az trace on has been set az trace off: status where az trace off has been set [menu bar] (1) [file (f)] menu file (f) option (p) operation (o) browse (b) window (w) help (h) exit (x) exit (x) terminates the az850.
chapter 6 window reference user's manual u14410ej4v0um 56 (2) [option (p)] menu file (f) option (p) operation (o) browse (b) window (w) help (h) tool bar (t) status bar (s) az options (z) ? ctrl+o select measurement target (m) ? function level (f) ? tool bar (t) specifies whether or not to display the tool bar on this window. the tool bar is displayed when this item is selected. status bar (s) specifies whether or not to display the status display area on this window. the status display area is displayed when this item is selected. az options (z) opens the dialog box. specify the options to be used when performing az trace in this dialog box. this item has the same operation as the button on the tool bar. select measurement target (m) displays a submenu for opening the dialog box. the following items are displayed as the submenu items. function level (f) opens the function-level dialog box. (3) [operation (o)] menu file (f) option (p) operation (o) browse (b) window (w) help (h) az trace on (o) ctrl+t az trace off (f) ctrl+t upload (u) ctrl+u az trace on (o) sets the az trace mode to ?az trace on?. when this item is selected, ?az trace on? is set and trace data is collected in the trace memory as the user program is executed. az trace off (f) sets the az trace mode to ?az trace off?. when this item is selected, ?az trace off? is set and trace data is not collected in the trace memory as the user program is executed. upload (u) uploads trace data. the trace data obtained by executing the user program is read from the trace memory and converted into az trace data. furthermore, if the is opened, clicking this button updates the execution transition diagram to the latest az trace data. this item has the same operation as the button on the tool bar.
chapter 6 window reference user's manual u14410ej4v0um 57 cautions 1. [az trace on] cannot be selected unless the az850 is in the following status. ? ? ? ? in case of soft trace status where both rtos and az monitor have been downloaded ([rx+az loaded] displayed on status bar) ? ? ? ? in case of hard trace when both rtos and az monitor have been downloaded at the task level ([rx+az loaded] displayed on the status bar), when an application program including function information is loaded in the debugger ([fncinfo loaded] displayed on the status bar), or when rtos and an application program including function information have been loaded ([rx/fncinfo loaded] is displayed on the status bar) 2. [az trace on] cannot be selected during user program execution. 3. [upload] cannot be selected when there is no trace data in the trace memory. (4) [browse (b)] menu file (f) option (p) operation (o) browse (b) window (w) help (h) analyze (z) ? task level (t) ? ctrl+a function level (f) ? ctrl+f analyze (z) displays a submenu for opening the . the following items are displayed as the submenu items. task level (t) opens the task level . this item has the same operation as the button on the tool bar. function level (f) opens the function level . this item has the same operation as the button on the tool bar. (5) [window (w)] menu file (f) option (p) operation (o) browse (b) window (w) help (h) close all windows (a) close all windows (a) closes all the windows and dialog boxes of the az850.
chapter 6 window reference user's manual u14410ej4v0um 58 (6) [help (h)] menu file (f) option (p) operation (o) browse (b) window (w) help (h) window help (w) f1 topic search (h) version information (a) window help (w) displays the help topics for this window. topic search (h) displays the help dialog box of the az850. version information (a) opens the dialog box of the az850. [caution] ? to set ?az trace on?, the az850 must be in the following status. ? in case of soft trace form status where both rtos and az monitor have been downloaded ([rx+az loaded] displayed on status bar). ? in case of hard trace form when both rtos and az monitor have been downloaded at the task level ([rx+az loaded] displayed on the status bar), when an application program including function information is loaded in the debugger ([fncinfo loaded] displayed on the status bar), or when rtos and an application program including function information have been loaded ([rx/fncinfo loaded] is displayed on the status bar) ?az trace on? cannot be set during user program execution. ? if using the az850 with the soft trace form, the contents of the trace memory are cleared by setting ?az trace on?. ? if using the hard trace form, the az850 sets trace conditions to the debugger. thus, if many trace conditions are used on the debugger side, it may not be possible to set ?az trace on?. (for details, refer to the manual of the debugger that is used). ? even if trace data is uploaded, the main window itself does not change. to see the trace data contents, it is necessary to open the after uploading the trace data. [error] ? when uploading data, the dialog box appears if there is no trace data in the trace memory. ? when switching the az trace mode, the dialog box appears upon occurrence of an error. ? if an error occurs during trace data uploading, the dialog box appears.
chapter 6 window reference user's manual u14410ej4v0um 59 az option dialog box [az option] [outline] this dialog box is used to specify the trace form for the az850, the target real-time os, the trace buffer type, the trace buffer area, and the trace level of the az trace data to be collected. this dialog box can be opened with one of the following operations. ? in the az main window, select [open (p)] from the menu bar, then [az options (z )]. ? in the az main window, click the button. ? press the alt + p , z keys in that order. ? press ctrl + o keys. [window] figure 6-3 az option dialog box (a) address mask specification area (b) real-time os selection area (c) trace form specification area (d) trace buffer type specification area (e) trace buffer area specification area (f) trace level specification area
chapter 6 window reference user's manual u14410ej4v0um 60 [function] this section describes (1) each area and (2) the trace forms specified in the dialog box. (1) description of each area (2) regarding trace from specified in the dialog box (1) description of each area (a) address mask specification area this area specifies the upper limit value of the physical address space on the chip. select the value according to the chip used as shown below. select 0x00ffffff for the v851, v852, v853, v854, v850/sa1, v850/sb1, and v850/sb2. select 0x03ffffff for the v850e/ms1. select 0x0fffffff for the v850e/ma1 and v850e/ia1. refer to the user?s manual of each chip for chips not described here. (b) real-time os selection area when performing trace at the task level, select the real-time os used by the load module downloaded on the debugger from the drop-down box. ? ? ? ? rx850 select this item to use the rx850. ? ? ? ? rx850 pro select this item to use the rx850 pro. (c) trace form specification area this area is used to specify the az850 trace form. select the environment to be used by selecting one of the option buttons. ? ? ? ? soft form (soft trace form) select this item to collect az trace data from the monitor program with a monitor function provided on the target system. ? ? ? ? hard form (default: hard trace form) select this item to collect az trace data using the trace function of an in-circuit emulator or simulator. (d) trace buffer type specification area this area is used to specify the type of trace buffer when specifying the soft trace form (soft form) as the trace form. select the environment to be used by selecting one of the option buttons. ? ? ? ? fixed buffer the trace buffer is a fixed buffer. when the trace buffer becomes full, trace collection ends. therefore, the trace data up to the location where the program execution was stopped is not necessarily collected. ? ? ? ? ring buffer the trace buffer is a ring buffer. when the trace buffer becomes full, the older trace data is overwritten.
chapter 6 window reference user's manual u14410ej4v0um 61 (e) trace buffer area specification area this area is used to specify the trace buffer area to be used with the soft trace form. specify the start address and end address in the respective text boxes. in the case of the soft trace form, the trace data collected by the az850 is stored for a while in the target memory. thus, an unused area in the target memory must be specified as the trace buffer area. the trace buffer area must be specified so that its size is between 4 kb and 4 mb. (f) trace level specification area this area is used to specify the trace level of the az trace data to be collected. ? when only task level is selected: collects az trace data of task level. ? when only func. level is selected: collects az trace data of function level. ? when both levels are selected: collects az trace data of task level and function level in mix. as the default level, task level is selected. if soft form is specified as the trace mode, only ? task level ? can be specified as the trace level. (2) regarding trace form specified in dialog box the az850 trace forms consist of the soft trace form and the hard trace form, and one of these must be specified. the default is the hard trace form. however, if the connected debugger does not support the hard trace form, the soft trace form becomes the default. [function buttons] operation target button function condition az850 operates with the specified physical address upper limit value, rtos type, trace form, trace buffer area, and trace level. ? closes this dialog box. ? opens an explanation window for this dialog box. [errors] ? when the ok button is clicked without selecting a trace level, the dialog box appears. ? if the address range specified during trace buffer area specification is incorrect, pressing the ok button causes the dialog box to appear.
chapter 6 window reference user's manual u14410ej4v0um 62 file select dialog box [open file] [outline] this dialog box is used to select files when loading or saving display files. this dialog box can be opened with one of the following operations. ? from the menu bar in each window, select [file (e)], then [open (o )]. ? from the menu bar in each window, select [file (f)], then [save as (a )]. ? in each window, click the button. ? in each window, click the button. ? in each window, press the alt + f , o keys in that order. ? in each window, press the alt + f , a keys in that order. [window] figure 6-4 file select dialog box (open)
chapter 6 window reference user's manual u14410ej4v0um 63 [function] this section describes the following items. (1) display file extensions and file format (2) display information reproduction (1) display file extensions and file format display files vary from window to window, and are differentiated by their extension. table 6-2 shows the default extension of display files corresponding to the various windows of the az850 and their file format. table 6-2 display file types and extensions display file type extension file format analyze window .az binary format cpu window .azc pattern window .azp trace view window .azt csv format (2) display information reproduction reproduction of display information by loading a display file differs as follows for each window. (a) in case of the display information is reproduced in the currently open . therefore, to hold the currently displayed execution transition diagram, first place the in the hold status, then open a new and load the display file. (b) in case of other windows a window in the hold status is newly opened and the display information is reproduced in this window. therefore, the display information of the currently displayed window is saved as is on the screen. [function buttons] operation target button function select file loads/saves selected display file. ? closes this dialog box. ? displays the help topics for this window.
chapter 6 window reference user's manual u14410ej4v0um 64 [error] ? if the file name format is not correct, an dialog box appears. ? if loading a file that does not exist is attempted, an dialog box appears. ? if saving data to a write-protected file is attempted, an dialog box appears. ? if saving data by specifying a file name that already exists is attempted, a message confirming whether it is ok to overwrite the existing file appears. ? if loading data that cannot be handled in the current window is attempted, an dialog box appears.
chapter 6 window reference user's manual u14410ej4v0um 65 analyze window [task level] [analyze window] [outline] the collected az trace data is displayed in execution transition diagrams for each task by executing the user program. system timing errors and overall system verification and analysis can be done for single tasks from this window and the various windows displayed from it. this window can be opened with one of the following operations. ? in the az main window, select [browse (b)] from the menu bar, then [analyze (z )] and [task level (t )]. ? in the az main window, click the button. ? press the alt + b , z , and t keys in that order. ? press the ctrl + a keys.
chapter 6 window reference user's manual u14410ej4v0um 66 [window] figure 6-5 analyze window (task level) (g) (h) (i) (a) (j) (c) (k) (e) (n) (l) (o) (f) (d) (b) (p) (m) (a) up cursor (b) down cursor (c) up temporary cursor (d) down temporary cursor (e) object (f) analysis result (transition diagram) display (g) time display of up cursor position (h) time display of down cursor position (i) inter-cursor time display (j) time display of up temporary cursor position (k) data length (l) jump to beginning button (m) jump to end button (n) scale modify button (o) simple search buttons (p) time area (q) pop-up display
chapter 6 window reference user's manual u14410ej4v0um 67 [function] this section describes the following items. (1) description of each area (2) execution transition diagram display method (3) object names (4) execution transition diagram viewing method (5) verification method in execution transition diagram (1) description of each area (a) up cursor this cursor is used to check the processing time in az trace data and to specify ranges when performing various calculations. (it is used to specify the beginning of the range for which a calculation is to be done.) [operation method] click on the desired start location in the transition diagram with the mouse while pressing the shift key. (b) down cursor this cursor is used to check the processing time in az trace data and to specify ranges when performing various calculations. (it is used to specify the end of the range for which a calculation is to be done.) [operation method] click on the desired end location in the transition diagram with the mouse while pressing the ctrl key. (c) up temporary cursor this cursor is used to display the result position during search using the simple search button or pattern search, and to specify the start position when jumping to the debugger window. to display search results using the , this cursor indicates the start position of the searched pattern. when the up cursor is moved, the up temporary cursor also moves to the same position. [operation method] click the right button of the mouse. (d) down temporary cursor when displaying the search result in the , this cursor shows the end position of the searched pattern. when the down cursor is moved, the down temporary cursor also moves to the same position. (e) object these buttons indicate objects in az trace data. they indicate rtos-related resources such as tasks, events, and flags, and mailboxes. for details about the object names, refer to section (3) object names below. when an object name is clicked, the simple search button appears. clicking the object name once more makes the simple search button disappear.
chapter 6 window reference user's manual u14410ej4v0um 68 (f) analysis result (transition diagram) display this area displays the analysis result for the user program. for details about the marks on the transition diagram, refer to section (4) execution transition diagram viewing method below. (g) time display of up cursor position this box displays the relative time from the start of az trace data collection until the up cursor position. the unit is milliseconds (msec). (h) time display of down cursor position this box displays the relative time from the start of az trace data collection until the down cursor position. the unit is milliseconds (msec). (i) inter-cursor time display this box displays the time interval between the up cursor and the down cursor. the unit is milliseconds (msec). (j) time display of up temporary cursor position this box displays the relative time from the start of az trace data collection until the up temporary cursor position. the unit is milliseconds (msec). (k) data length this box indicates the time interval from the start to the end of az trace data. (l) jump to beginning button this button is used to move the up cursor and display screen to the beginning of the az trace data. (m) jump to end button this button is used to move the down cursor and display screen to the end of the az trace data. (n) scale modify button this button is used to change the display scale for execution transition diagrams. any display scale can be selected using the pull-down menu or the spin buttons. (o) simple search buttons these buttons are used to search the operation of selected objects. when the button displayed upon clicking an object name is clicked, the object operation is searched in the time axis direction in the execution transition diagram, and the up temporary cursor moves to the search position. when the button is clicked, the operation of the object selected in the opposite direction as the time axis is searched and the up temporary cursor moves to the search position. (p) time area this area displays the standard event interval time displayed in the execution transition diagram. the unit is displayed at the right extremity of this area. in the example shown in figure 6-5, the unit is milliseconds (msec).
chapter 6 window reference user's manual u14410ej4v0um 69 (q) pop-up display the following contents pop up when the mouse pointer is placed on the event or object buttons in the . ? object button (in case of rx850) object name ? object button (in case of rx850 pro) object name (object id number) ? vertical line indicating task switch time at which a task is switched task name or interrupt name before switch task name or interrupt name after switch ? orange-colored horizontal line indicating system call the time from when a system call is issued to the end of the system call (the time taken for the system call) syscall (system call name) target object name (this may not be displayed depending on the system call) ? orange-colored horizontal line indicating interrupt the time from when an interrupt is generated to the end of the interrupt (the time taken for the interrupt) int (interrupt name) ? vertical line indicating access for object system call issuance time: the task name that generates an event syscall or sysret (system call name) target object name ? the mark indicating system call error system call end time return value (2) execution transition diagram display method the execution transition diagram for the collected az trace data can be displayed in this window by performing the following operation. [operation method] <1> collect the az trace data. <2> open this window. (select [browse (b)] from the menu bar in the az main window, then select [analyze (z)], [task level (t)], or click the button on the tool bar.) data is not automatically updated in this window. therefore, to display as an execution transition diagram trace data newly collected by re-executing the user program, perform upload (from the az main window, select [operation (o)], then [upload [u ], or click the button]).
chapter 6 window reference user's manual u14410ej4v0um 70 (3) object names the buttons that indicate objects are displayed as follows. ? ? ? ? rx850 objects rx850 objects are displayed using the symbol names specified with the rx850 configurator. the object name pops up when the mouse pointer is placed on the object button. however, idle tasks are displayed as follows. idle task items for which the task id is not known are displayed as follows as unknown tasks. the task id is unknown from program execution start to task switching when the program is executed in the middle of a task. task with unknown id long object name (xxxx: object name) ? ? ? ? rx850 pro objects a task is displayed with the function name specified by the user and the task id number. other object names are displayed with the resource type and the id number. however, the correspondence between the function name and the task id number may not be displayed correctly because the function name information is read from the target memory to which the rx850 pro system management table is allocated when upload processing is performed. the function name or object name pops up when the mouse pointer is placed on the object button. task (nnnn: task id no. (hexadecimal)) event flag (nnnn: event flag id no. (hexadecimal)) semaphore (nnnn: semaphore id no. (hexadecimal)) mailbox (nnnn: mailbox id no. (hexadecimal)) memory pool (nnnn: memory pool id no. (hexadecimal)) idle task task with unknown id the function name is displayed as follows when it is long. long function name (xxxx: object name and yyyy: task id number)
chapter 6 window reference user's manual u14410ej4v0um 71 ? ? ? ? interrupts interrupts are displayed with the interrupt handler name obtained from the debugger. however, if the interrupt handler name could not be obtained from the debugger, the following default names are displayed. maskable interrupt (nnnn: exception code (hexadecimal)) non-maskable interrupt ? ? ? ? other objects objects set in the ? hide objects ? area in the dialog box (4) execution transition diagram viewing method there are the following three display modes for execution transition diagrams, which can be selected by selecting from the menu bar in the [view (v)], then [display mode (v )]. (a) vertical line delete mode (b) standard mode (c) detailed mode (default) remark whether or not to display grid lines in transition diagrams can be selected by selecting from the menu bar in this window [view (v)], then [grid mode (g )]. (a) vertical line delete mode this mode displays horizontal lines only for cpu run locations. the vertical line delete mode is suitable when analyzing az trace data in a wide range. figure 6-6 analyze window (task level) (vertical line delete mode) remark black lines indicate user program processing, and red lines indicate system call processing.
chapter 6 window reference user's manual u14410ej4v0um 72 (b) standard mode this mode displays cpu transition traces as linked lines. figure 6-7 analyze window (task level) (standard mode) remark black lines indicate user program processing, and red lines indicate system call processing. (c) detailed mode (default) this mode displays system calls of memory pool management and synchronous communication management functions among rtos system calls, in addition to cpu transition traces, as ? marks ? (refer to table 6-3 and table 6-4). the detailed mode is suitable when analyzing access to objects.
chapter 6 window reference user's manual u14410ej4v0um 73 figure 6-8 analyze window (task level) (detailed mode) remark black lines indicate user program processing, and red lines indicate system call processing. (a) interrupt acknowledged in idle state (halt state), and processing moves. (b) processing has moved to tsk_main. (c) processing has moved to tsk_sub. (d) interrupt has been acknowledged. (e) tsk_main has issued wai_flg system call to flg_work event flag. since tsk_main is in wait status, processing has moved to tsk_sub. (f) tsk_main indicates that the issued wai_flg system call has returned and that wait has been released. (g) tsk_main has issued set_flg to flg_work. (h) tsk_main has issued get_blf system call to mpl_work memory pool. (i) system call in (h) has been returned with an error return. (j) tsk_sub has issued the sig_sem system call for the sem_work semaphore. table 6-3 list of marks on execution transition diagram (task level) (when rx850 embedded) mark access target issued system call m eaning event flag wai_flg / pol_flg / twai_flg / vwai_flg1 / vtwai_flg1 / vpol_flg1 semaphore wai_sem / twai_sem / preq_sem mailbox rcv_msg / trcv_msg / prcv_msg variable-length memory block get_blk / tget_blk / pget_blk fixed-length memory block get_blf / tget_blf / pget_blf event flag set_flg / clr_flg / vset_flg1 / vclr_flg1 semaphore sig_sem mailbox snd_msg variable-length memory block rel_blk fixed-length memory block rel_blf indicates that system call has been issued and returned for access target. indicates that the issued system call has resulted in an error.
chapter 6 window reference user's manual u14410ej4v0um 74 table 6-4 list of marks on execution transition diagram (task level) (when rx850 pro embedded) mark access target issued system call meaning event flag wai_flg / pol_flg / twai_flg semaphore wai_sem. / twai_sem / preq_sem mailbox rcv_msg / trcv_msg / prcv_msg memory pool get_blk / tget_blk / pget_blk event flag del_flg semaphore del_sem mailbox del_mbx memory pool del_mpl event flag del_flg semaphore del_sem mailbox del_mbx memory pool del_mpl indicates that system call has been issued and returned for access target. indicates that the issued system call has resulted in an error. (5) verification method in execution transition diagram the collected az trace data can be verified in this window using the following methods. (a) object processing search (b) search using pattern search dialog box (c) search using (a) object processing search the specified object processing can be searched using the simple search button. [operation method] <1> if the up temporary cursor is displayed in the execution transition diagram, move the up temporary cursor to the search start position. if it is not displayed, move the up cursor to the search start position. <2> click the object name whose operation is to be verified. the simple search button is displayed as a result. the simple search button is displayed immediately on the right of the object name and also at the right end of the transition diagram. <3> click the simple search button. : the specified object processing is searched in the time axis direction in the execution transition diagram, and the up temporary cursor moves to the search position. : the specified object processing is searched in the opposite direction to the time axis in the execution transition diagram, and the up temporary cursor moves to the search position. if the searched point is not displayed on the currently displayed execution transition diagram, that point is moved on the graph so that it coincides with 0 on the graduation. the simple search button disappears from the screen when the button indicating the object name is clicked again.
chapter 6 window reference user's manual u14410ej4v0um 75 (b) search using dialog box in the dialog box, the specified pattern is searched on the transition diagram. the search results are displayed by the up temporary cursor on the transition diagram. when using the dialog box, the transition status of tasks and interrupts can be searched. for details, refer to the dialog box description. (c) search using in the , the specified pattern set in the dialog box is searched on the transition diagram. the search results are displayed by the up and down temporary cursors on the transition diagram. when using the , task and interrupt processing sections can be searched. for details, refer to the description. [function buttons] (1/2) operation target button function ? opens the dialog box. the previously saved trace data is read and a transition diagram is displayed. ? opens the dialog box. the trace data currently displayed in the is saved to a file. ? sets the transition diagram grid mode on/off. ? sets the vertical line delete mode as the transition diagram display mode. ? sets the standard mode as the transition diagram display mode. ? sets the detailed mode as the transition diagram display mode. ? opens the dialog box. ? opens the dialog box. ? opens the and displays the cpu utilization rate between the up cursor and down cursor. if an active is already displayed, the contents of this window are updated. ? opens the dialog box. when pattern conditions are set, the is displayed between the up cursor and down cursor. if an active is already displayed, the contents of this window are updated. ? opens the from the position specified with the up temporary cursor. if an active is already displayed, the contents of this window are updated. ? opens the from the position specified with the up temporary cursor. if an active is already displayed, the contents of this window are updated. ? opens the from the position specified with the up temporary cursor. if an active is already displayed, the contents of this window are updated.
chapter 6 window reference user's manual u14410ej4v0um 76 (2/2) operation target button function ? displays the memory list on the debugger from the position specified with the up temporary cursor. if the memory list is already displayed in an active window, the contents of that window are updated. [menu bar] (1) [file (f)] menu file (f) view (v) operation (o) browse (b) jump (j) help (h) open (o) ? ctrl+o save (s) ? ctrl+s close (c) open (o) opens the dialog box. the previously saved files displayed in this window are read. the default extension of the display file for this window is .az. save (s) opens the dialog box. saves the currently displayed execution transition diagram data to a display file, either as a new file or as a file with a different name. the default extension of the display file for this window is .az. close (c) closes this window. caution if the execution transition diagram is not displayed, the [save (s)] item cannot be selected. (2) [view (v)] menu file (f) view (v) operation (o) browse (b) jump (j) help (h) grid mode (g) display mode (v) grid (g) display reduction (l) ctrl+[ no grid (u) display expansion (t) ctrl+] search (s) ctrl+f vertical line delete mode (o) select object (o) standard mode (s) detailed mode (d) grid mode (g) displays the submenu for specifying display/hide grid lines on execution transition diagram. the following submenu is displayed. grid (g) display grid lines. no grid (u) don ? t display grid lines.
chapter 6 window reference user's manual u14410ej4v0um 77 display mode (v) displays the submenu for specifying the execution transition diagram display mode. the following submenu is displayed. vertical line delete mode (o) does not display vertical lines on execution transition diagram. this item has the same operation as the button. standard mode (s) displays only the cpu execution transitions. this item has the same operation as the button. detailed mode (d) at the task level, indicates the real-time os system call access status, and at the function level, indicates the cpu ? s execution transition and i/o access with marks (default). this item has the same operation as the button on the tool bar. display reduction (l) reduces the execution transition diagram display scale. this item performs the same operation as reduction using the scale modify button (refer to figure 6-5). display expansion (t) expands the execution transition diagram display scale. this item performs the same operation as expansion using the scale modify button (refer to figure 6-5). search (s) opens this window ? s trace level dialog box. this item performs the same operation as the button. object select (o) opens this window ? s trace level dialog box. this item has the same operation as the button. (3) [operation (o)] menu file (f) view (v) operation (o) browse (b) jump (j) help (h) active (a) ctrl+a hold (h) ctrl+h active (a) switches this window from hold status to active status. hold (h) switches this window from active status to hold status. (4) [browse (b)] menu file (f) view (v) operation (o) browse (b) jump (j) help (h) cpu ? ctrl+c pattern ? ctrl+p traceview ? ctrl+t cpu utilization rate (c) opens this window ? s trace-level . if an active is already displayed, the contents of this window are updated. this item has the same operation as the button.
chapter 6 window reference user's manual u14410ej4v0um 78 pattern distribution (p) opens this window ? s trace level dialog box. when a pattern is set in this dialog box, the appears. if an active is already displayed, the contents of this window are updated. this item has the same operation as the button. trace view (t) opens this window ? s trace level . if an active is already displayed, the contents of this window are updated. this item has the same operation as the button. (5) [jump (j)] menu file (f) view (v) operation (o) browse (b) jump (j) help (h) source (s) ? assemble (a) ? memory (m) ? az function level (1 task) (o) ? az function level (all tasks) (l) ? source (s) displays the source text on the debugger from the position specified with the up temporary cursor. if the source text is already displayed in an active window, the contents of this window are updated. this item has the same operation as the button. assemble (a) displays the disassemble text on the debugger from the position specified with the up temporary cursor. if the disassemble text is already displayed in an active window, the contents of this window are updated. this item has the same operation as the button. memory (m) displays the memory list on the debugger from the position specified with the up temporary cursor. if the memory list is already displayed in an active window, the contents of this window are updated. this item has the same operation as the button. az function level (1 task) (o) opens the function-level only for the task specified with the up temporary cursor (set immediately before moving to the task to be specified). if an active function-level is already displayed, the contents of this window are updated. az function level (all tasks) (l) opens the function-level for all tasks. if an active is already displayed, the contents of this window are updated. caution if no address information exists for the position specified with the up temporary cursor, none of the items in the [jump (j)] menu can be selected.
chapter 6 window reference user's manual u14410ej4v0um 79 (6) [help (h)] menu file (f) view (v) operation (o) browse (b) jump (j) help (h) window help (w) f1 topic search (h) window help (w) displays the help topics for this window. topic search (h) displays the help dialog box of the az850. [caution] ? data is not automatically updated in this window. thus, to collect new trace data by re-executing the application program, data update by performing upload (from the az main window, select [operation (o)], then [upload (u )]) must be performed. ? if there is no address information in the trace data at the position specified with the up temporary cursor, none of the items in the [jump (j)] menu can be selected. ? task names in the rx850 pro are displayed as ? function name [task id number] ? . however, when an attempt is made to perform dynamic processing for a task, the correspondence between the function name and the task id number may not be displayed correctly because the function name information is read from the target memory to which the rx850 pro system management table is allocated when upload processing is performed. [supplement] ? an az file can be opened by dragging and dropping the file icon on the . [error] ? if an active execution transition display window exists, making a window in the hold status active causes the dialog box to appear. ? reading an az file whose real-time os differs from the real-time os specified in the dialog box causes the dialog box to appear.
chapter 6 window reference user's manual u14410ej4v0um 80 object select dialog box [task level] [object select] [outline] this dialog box is used to select objects to be displayed and to change their sequence in the execution transition diagram of the task-level . this dialog box can be opened with one of the following operations. ? from the menu bar in the , select [view (v)], then [object select (o )]. ? in the , click the button. ? in the , press the alt + v , o keys in that order. [window] figure 6-9 object select dialog box (task level) (a) hide objects area (b) show objects area (c) sort mode area [function] this section describes the following items. (1) description of each area (2) shown object limitation method (3) shown object addition method (4) shown object sequence modification method
chapter 6 window reference user's manual u14410ej4v0um 81 (1) description of each area (a) hide objects area this area displays the list of objects among those included in az trace data that are not displayed in execution transition diagrams. the horizontal scroll bar becomes active when a long object name is displayed. the vertical scroll bar becomes active when the number of files displayed in this area exceeds the space. (b) show objects area this area displays the list of objects displayed in execution transition diagrams. the horizontal scroll bar becomes active when a long object name is displayed. the vertical scroll bar becomes active when the number of files displayed in this area exceeds the space. the default is to display all objects included in the az trace data. the sequence in which objects are listed in this area is reflected in execution transition diagrams. (c) sort mode area this area is used to select the display sequence used in the lists in the hide objects area and the show objects area. (2) shown object limitation method the objects that are displayed in execution transition diagrams can be limited (deleted) by performing the following operation. <1> select objects that do not need to be displayed in execution transition diagrams from the list displayed in the show object area. <2> click the < click the ok button to reflect these changes in the execution transition diagram. remark hidden objects are grouped into the object and displayed in execution transition diagrams. (3) shown object addition method objects to be displayed in execution transition diagrams can be added by performing the following operation. <1> select the objects to be displayed in execution transition diagrams among those listed in the hide objects area. <2> click the show>> button. the selected objects are moved to the show objects area. if, at this time, the destination is specified, the objects in question are inserted immediately before this specified destination, and if the destination is not specified, they are inserted at the very end of the list. <3> click the ok button to reflect these changes in the execution transition diagram. (4) shown object sequence modification method objects in the hide objects area and show objects area are displayed classified into interrupts, idle, event flags, semaphores, mailboxes, and memory pools (default).
chapter 6 window reference user's manual u14410ej4v0um 82 to modify the display sequence, select a setting from the sort mode drop-down list in the sort mode area. the display sequence in the show objects area is reflected to the execution transition diagram. sort mode meaning none unsorted mode (default) appear order of appearance in az trace data name name sequence for objects id id sequence for objects priority priority sequence (however, this setting is valid only for ta sks.) [function buttons] operation target button function object moves objects selected in the show objects area to the hide objects area. if the destination is specified, the objects are inserted immediately this specified destination, and if the destination is not specified, they are inserted at the very end of the list. object moves objects selected in the hide objects are to the show objects area. if the destination is specified, the objects are inserted immediately this specified destination, and if the destination is not specified, they are inserted at the very end of the list. ? displays objects on execution transition diagram based on the objects displayed in the show objects area. ? closes this dialog box. ? opens an explanation window for this dialog box.
chapter 6 window reference user's manual u14410ej4v0um 83 pattern search dialog box [task level] [pattern search] [outline] this dialog box is used to set search conditions when searching given events in execution transition diagrams. these events refer to switching points from a specified task or interrupt to a specified task or interrupt, or a given status of a specified system call. this dialog box can be opened with one of the following operations. ? from the menu bar in the , select [view (v)], then [search (s )]. ? in the click the button. ? in the , press the alt + v , s keys in that order. ? in the , press the ctrl + f keys. [window] figure 6-10 pattern search dialog box (task level) (a) search mode selection area (b) search condition setting area
chapter 6 window reference user's manual u14410ej4v0um 84 [function] this section describes the following items. (1) description of each area (2) search method (1) description of each area (a) search mode selection area this area is used to select the search mode. the search mode indicates the type of event to be searched in the execution transition diagram. table 6-5 lists the various search modes. table 6-5 pattern search modes (task level) search mode description task switch search of task switching location system call (call) search of location where a system call was called system call (return) search of location where a system call was returned system call (error) search of location where a system call resulted in an error being retur ned. (b) search condition setting area this area is used to set the search conditions for the search mode specified in the search mode selection area. the contents displayed in this area differ depending on the specified search mode. the search conditions set for each item can be directly input from the keyboard or selected from the drop- down list. table 6-6 lists the conditions that can be set. table 6-6 pattern search conditions (task level) (when task switch is specified as search mode) item meaning of condition task (high) specifies the task name or interrupt name before switching. if the user is not specific about the task or interrupt, specify ? any ? . task (low) specifies the task name or interrupt name after switching. if the user is not specific about the task or interrupt, specify ? any ? . interrupt specifies whether or not to include switching to (from) an interrupt among the search targets. select ? valid ? to set interrupt transitions as a search target, and set ? invalid ? to exclude interrupt transitions from search targets.
chapter 6 window reference user's manual u14410ej4v0um 85 remark for the interrupt item, the search position when ? valid ? or ? invalid ? is specified is as follows. (search condition: switching from [any] to [_task2]). (a) (c) interrupt (b) _task1 _task2 valid invalid [(a) in above figure] valid ? since switching is done from [_task1] to [_task2], search is performed. invalid ? since switching is done from [_task1] to [_task2], search is performed. [(b) in above figure] valid ? since switching is done from [interrupt] to [_task2], search is performed. invalid ? switching from interrupt servicing is ignored, but since switching from [_task1] to [_task2] is performed, search is performed. [(c) in above figure] valid ? since switching from [interrupt] to [_task2], search is performed. invalid ? since switching from interrupt servicing is ignored, the sequence is seen as [_task2] [_task2] and thus switching is considered not to have occurred, and as a result search is not performed. table 6-7 pattern search conditions (task level) (when system call (call, return, error) is specified as search mode) item meaning of condition task specifies the task name or interrupt name that issued a system call. if the user is not specific about the task or interrupt, specify ? any ? . system call specifies the system call name. if the user is not specific about the system call, specify ? any ? . object specifies the target object for the system call. if the user is not specific about the object, specify ? any ? . (2) search method [operation method] <1> specify the position to be used as the search start point. if the up temporary cursor is displayed in the execution transition diagram, move it to the search start position. if it is not displayed, move the up cursor to that position. <2> in the search mode selection area, on this dialog box, select the search mode. <3> in the search condition setting area, either input the search condition for each item from the keyboard or select the search condition from the drop-down list. <4> click the button or the button.
chapter 6 window reference user's manual u14410ej4v0um 86 the search is performed as follows. ? if the button is clicked the search is performed from the specified start point along the time axis, and the up temporary cursor moves to the search result position. ? if the button is clicked the search is performed from the specified start point in the direction opposite to the time axis, and the up temporary cursor moves to the search result position. [function buttons] operation target button function search condition the location corresponding to the specified search condition is searched from the position indicated by the up cursor or the up temporary cursor in the execution transition diagram along the time axis. the up temporary cursor in the execution transition diagram moves to the search result position. search condition the location corresponding to the specified condition is searched from the position indicated by the up cursor or the up temporary cursor in the execution transition diagram in the direction opposite to the time axis. the up temporary cursor in the execution transition diagram moves to the search result position. ? closes this dialog box. ? opens an explanation window for this dialog box. [error] if no event meeting the set search condition exists in the az trace data, a warning sound is emitted.
chapter 6 window reference user's manual u14410ej4v0um 87 cpu window [task level] [cpu window] [outline] this window displays the cpu usage status in the time range between the up cursor and the down cursor in the execution transition diagram. from this window, it is possible to check the execution time for specified tasks, interrupts, etc., and to evaluate the target data performance from the idle time and interrupt time. this window can be opened with one of the following operations. ? from the menu bar in the , select [browse (b)], then [cpu utilization rate (c )]. ? in the , click the button. ? in the , press the alt + b , c keys in that order. ? in the , press the ctrl + c keys. [window] figure 6-11 cpu window (task level) (a) (b) (c) (d) (g) (e) (f) (f) (a) up cursor position time display (b) down cursor position time display (c) up/down cursor time display (d) object name (e) total object execution time display (f) cpu utilization rate graph display (g) task execution time percentage display (h) system execution time percentage display
chapter 6 window reference user's manual u14410ej4v0um 88 [function] this section describes the following items. (1) description of each area (2) cpu utilization rate display method (3) jump function in (1) description of each area (a) up cursor position time display displays the time when cpu utilization rate calculation was started. this is the relative time from the start of az trace data collection until the position of the up cursor in the execution transition diagram. the unit is milliseconds (msec). (b) down cursor position time display displays the time when cpu utilization rate calculation was ended. this is the relative time from the start of az trace data collection until the position of the down cursor in the execution transition diagram. the unit is milliseconds (msec). (c) up/down cursor position time display displays the time interval during which cpu utilization rate data was calculated. this is the time interval between the up cursor and the down cursor. the unit is milliseconds (msec). (d) object name displays list of object names that exist within calculation time interval. the horizontal scroll bar becomes active when a long object name is displayed. (e) total object execution time display displays the tasks during the calculation time interval, the task execution time during interrupt processing, and the system processing time total. (f) cpu utilization rate graph display displays cpu utilization rate for objects existing in calculation time interval. the display is split into ? task execution ratio ? and ? system processing ratio ? . (g) task execution time percentage display displays the percentage of task execution time during calculation time interval. (h) system execution time percentage display displays the percentage of system execution time during calculation time interval.
chapter 6 window reference user's manual u14410ej4v0um 89 (2) cpu utilization rate display method cpu utilization rate is calculated during the time interval between the up cursor and the down cursor in the execution transition diagram. [operation method] <1> define the interval for which the cpu utilization rate is to be calculated by setting the up cursor and down cursor in the execution transition diagram. <2> from the menu bar in the , select [browse (b)], then [cpu utilization rate (c )] to open this window. remark when the is open, moving the up cursor or the down cursor in the execution transition diagram causes automatic update of the cpu utilization rate. (3) jump function from after specifying an object in the list with the mouse, selecting [jump (j)] in this window causes the next window to appear. ? ? ? ? pattern window displays the pattern distribution for the specified object processing time. the pattern displayed here is automatically set as follows. start point: task switch [any] [specified task] ; [valid] end point: task switch [specified task] [any] ; [valid] [function buttons] operation target button function ? opens the dialog box. the display data in the previously saved cpu window is read and displayed. ? opens the dialog box. the display data displayed in the current cpu window is saved to a file. ? changes the graph display sequence to order of appearance of trace data. ? changes the graph display sequence to object name sequence (alphabetical order). ? changes the graph display sequence to execution time length order. ? changes the graph display sequence to order of appearance in . object displays the corresponding to the specified object. if an active is already displayed, its contents are updated.
chapter 6 window reference user's manual u14410ej4v0um 90 [menu bar] (1) [file (f)] menu file (f) view (v) operation (o) jump (j) help (h) open (o) ? ctrl+o save (s) ? ctrl+s close (c) ? open (o) opens the dialog box. the previous saved display file in this window is read. the default extension of the display file for this window is .azc. save (s) opens the dialog box. save the display file containing the information currently displayed in this window for the first time or with a new name. the default extension of the display file for this window is .azc. close (c) closes this window. caution if the cpu utilization rate graph is not displayed, [save as (a)] cannot be selected. (2) [display (v)] menu file (f) view (v) operation (o) jump (j) help (h) sort appearance order (a) sort name order (n) sort runtime order (t) sort analyze order (z) sort appearance order (a) changes the graph display sequence to order of appearance of az trace data. this item has the same operation as the button. sort name order (n) changes the graph display sequence to name sequence (alphabetical order). this item has the same operation as the button. sort runtime order (t) changes the graph display sequence to execution time length order. (default) this item has the same operation as the button. sort analyze order (z) changes the graph display sequence to object appearance sequence in execution transition diagram. this item has the same operation as the button.
chapter 6 window reference user's manual u14410ej4v0um 91 (3) [operation (o)] menu file (f) view (v) operation (o) jump (j) help (h) active (a) ctrl+a hold (h) ctrl+h active (a) switches this window from hold status to active status. hold (h) switches this window from active status to hold status. (4) [jump (j)] menu file (f) view (v) operation (o) jump (j) help (h) pattern distribution (p) ? ctrl+p pattern distribution (p) opens the corresponding to the specified object. if an active is already displayed, the contents of this window are updated. the patterns displayed here is automatically set as follows. start point: task switch [any] [specified object] ; [valid] end point: task switch [specified object] [any] ; [valid] this item has the same operation as the button. (5) [help (h)] menu file (f) view (v) operation (o) jump (j) help (h) window help (w) f1 topic search (h) window help (w) displays the help topics for this window. topic search (h) displays the help dialog box of the az850. [caution] ? this window closes when the task-level is closed. [error] ? when an active already exists, trying to make a in the hold status active causes an dialog box to appear.
chapter 6 window reference user's manual u14410ej4v0um 92 pattern set dialog box [task level] [pattern set] [outline] this dialog box is used to set the pattern search mode and the search conditions as pattern settings for displaying the . a pattern refers to the processing interval (cpu run interval) from the occurrence of a given event (task switching, interrupt occurrence, system call status, etc.) to the end of that event or the occurrence of a different event. this dialog box can be opened with one of the following operations. ? from the menu bar in the , select [browse (b)], then [pattern distribution (p )]. ? in the , click the button. ? in the , press the alt + b , p keys in that order. ? in the , press the ctrl + p keys. [window] figure 6-12 pattern set dialog box (task level) (a) pattern search mode selection area (b) search condition setting area caution the contents displayed in the search condition setting area differ depending on the selection made in the pattern search mode selection area.
chapter 6 window reference user's manual u14410ej4v0um 93 [function] this section describes the following. (1) description of each area (2) pattern search/calculation method (1) description of each area (a) pattern search mode selection area this area is used to select the pattern mode. the pattern mode indicates the type of event used for the pattern start point (from:) to the end point (to:) to be calculated in the . table 6-8 lists the various pattern modes. table 6-8 pattern modes (task level) pattern mode description task switch mode using task switching locations are start/end points. system call (call) mode using location where a system call was called as start/ end points. system call (return) mode using location where a system call was retur ned as start/end points. system call (error) mode using location where a system call retur ned error as start/end points. (b) search condition setting area this area is used to set the pattern condition for the pattern mode for the pattern start/end points specified in (a). the contents displayed in this area differ according to the specified pattern mode. the pattern conditions set for each item can either be directly input from the keyboard or selected from the drop-down list. the conditions that can be set are as follows. table 6-9 pattern conditions (task level) (when task switch is specified as search mode) item meaning of condition task (high) specifies the task name or interrupt name prior to switching. if the user is not specific about the task or interrupt, specify ? any ? . task (low) specifies the task name or interrupt name after switching. if the user is not specific about the task or interrupt, specify ? any ? . interrupt specifies whether or not to include switching to (from) an interrupt among the search targets. select ? valid ? to set interrupt transitions as a search target, and set ? invalid ? to exclude interrupt transitions from search targets.
chapter 6 window reference user's manual u14410ej4v0um 94 remark for the interrupt item, the search position when ? valid ? or ? invalid ? is specified is as follows. search condition: from: [any] [_task2] to: [_task2] [any] (a) (c) interrupt (b) _task1 _task2 valid invalid _task3 if ?valid? is specified (a) and (b) are detected as patterns because interrupts are detected as switch targets. if ?invalid? is specified (c) is detected as a pattern because interrupts are not detected as switch targets. in this case, regarding the pattern start/end time, the interrupt exit time is calculated and the interrupt time is also included in the pattern execution time. table 6-10 pattern conditions (task level) (when ?system call (call, return, error) is specified as search mode) item meaning of condition task specifies the task name or interrupt name that has issued a system call. if the user is not specific about the task or interrupt, specify ? any ? . system call specifies the system call name. if the user is not specific about the system call, specify ? any ? . object specifies the system call ? s target object. if the user is not specific about the object, specify ? any ? . remarks a typical pattern setting example is provided below. [interrupt processing time analysis] from: task switch [any] [intp10] ; [valid] to: task switch [intp10] [any] ; [valid] [system call processing time analysis] (analysis of processing time until _task1 issues system call to wai_sem, and _sem1 can be acquired) from: system call(call) [_task1] [wai_sem] ; [_sem1] to: system call(return) [_task1] [wai_sem] ; [_sem1] [analysis of processing time from system call issue to startup of different task] (analysis of processing time until _task1 issues wai_tsk and processing moves to _task2) from: system call(call) [_task1] [wai_tsk] to: task switch [any] [_task2]
chapter 6 window reference user's manual u14410ej4v0um 95 [analysis of interval for which error return occurred] (analysis of interval of location for which error return occurred in _task1) from: system call(error) [_task1] [any] ; [any] to: system call(error) [_task1] [any] ; [any] (2) pattern search/calculation method the specified pattern is searched/calculated and the is opened by performing the following operation. [operation method] <1> set the up cursor and the down cursor in the execution transition diagram in the interval for which the pattern distribution status is to be calculated, in order to open this dialog box. <2> select the pattern mode to be used as the start point of the pattern to be calculated from the ? from: ? item in this dialog box. <3> select the pattern mode to be used as the end point of the pattern to be calculated from the ? to: item. <4> in the search condition setting area, either input the pattern conditions for ? from: ? and ? to: ? directly from the keyboard, or select them from the drop-down list. <5> click the ok button. [function buttons] operation target button function pattern condition searches/calculates the specified pattern in the time interval set with the up cursor and the down cursor in the execution transition diagram and opens the . ? closes this dialog box. ? opens an explanation window for this dialog box. [error] ? if no pattern satisfying the set search conditions exists in the az trace data, the dialog box appears.
chapter 6 window reference user's manual u14410ej4v0um 96 pattern window [task level] [pattern window] [outline] the pattern set in the is searched in the time interval set with the up cursor and the down cursor in the execution transition diagram, and the a histogram of the frequency of occurrence of this pattern is displayed in this window. a pattern refers to the processing interval (cpu run interval) from the occurrence of a given event (task switching, interrupt occurrence, system call status, etc.) to the end of that event or the occurrence of a different event. the execution time worst value and average value for various processes of the user program can be obtained from this window. this window can be opened with one of the following operations. ? from the menu bar in the , select [browse (b)], then [pattern distribution (p )], and perform settings in the dialog box. ? in the , click the button and set the condition in the dialog box. ? in the , press the alt + b , and p keys in that order, and perform settings in the dialog box. ? in the , press the ctrl + p keys and perform settings in the dialog box. ? from the menu in the cpu window, select [jump (j)], then [pattern distribution (p )]. ? in the , click the button. ? in the , press the ctrl + p keys and perform settings in the dialog box.
chapter 6 window reference user's manual u14410ej4v0um 97 [window] figure 6-13 pattern window (task level) (a) (b) (c) (d) (e) (f) (g) (h) (a) up cursor position time display (b) down cursor position time display (c) up/down cursor time display (d) pattern set condition display (e) average value display (f) histogram split display (g) processing time display area (h) pattern distribution display area [function] this section describes the following items. (1) description of each area (2) pattern distribution display method (3) pattern distribution viewing method (4) search from (1) description of each area (a) up cursor position time display displays the time when pattern distribution status calculation was started. this is the relative time from the start of az trace data collection until the position of the up cursor in the execution transition diagram. the unit is milliseconds (msec).
chapter 6 window reference user's manual u14410ej4v0um 98 (b) down cursor position time display displays the time when pattern distribution status collection ended. this is the relative time from the start of az trace data collection until the position of the down cursor in the execution transition diagram. the unit is milliseconds (msec). (c) up/down cursor position time display displays the time interval during which the pattern distribution status was calculated. this is the time interval between the up cursor and the down cursor. the unit is milliseconds (msec). (d) pattern setting condition display displays the pattern conditions set in the dialog box. the object name pops up when the mouse pointer is placed on this area. when the object name is long, a part of object name is omitted. (e) average value display displays the average value for the set pattern execution time. the unit is milliseconds (msec). (f) histogram split number display displays the histogram split number. the split number can be freely changed from 1 to 100 by clicking the button on the right. (g) processing time display area displays the time interval during which the set pattern was processed. (h) pattern distribution display area displays in histogram form the processing time of the set pattern calculated during the time interval set with the up cursor and the down cursor in the execution transition diagram. (2) pattern distribution display method pattern distribution calculation is done during the time interval set with the up cursor and the down cursor in the execution transition diagram. [operation method] <1> set the up cursor and the down cursor in the execution transition diagram to define the interval for which the pattern distribution status is to be calculated. <2> from the menu bar in the , select [browse (b)], then [pattern distribution (p)]. <3> in the dialog box that opens automatically, set the conditions of the pattern to be calculated and displayed, and then click the ok button. remark when the is open, moving the up cursor or the down cursor in the execution transition diagram causes automatic update of the pattern distribution contents. (3) pattern distribution viewing method the pattern distribution shown in figure 6-14 is an example for the analysis of the tsk_main processing time.
chapter 6 window reference user's manual u14410ej4v0um 99 figure 6-14 pattern distribution viewing method (task level) indicates that the average processing timer value for task1 is 0.15 ms. indicates the execution time interval obtained by dividing the maximum and minimum processing time for task1 by the number specified in the divide box. indicates that task1 processing was performed 12 times in the interval of 0.110350 to 0.200940 ms. (4) search from by using the function buttons in the , the pattern locations for which the execution time interval is minimum/maximum (or ascending/descending order of time interval) are searched, and the search results are displayed on an execution transition diagram. the up temporary cursor moves to the start position of the searched pattern, and the down temporary cursor moves to the end position. [function buttons] operation target button function ? opens the dialog box. the previously saved contents are read and displayed. ? opens the dialog box. the display data currently displayed in the is saved to a file. ? opens the dialog box. ? displays in the the location in the searched pattern where the execution time interval is minimum. ? searches the location with the next smaller execution time interval compared to the currently searched location. ? searches the location with the next larger execution time interval compared to the currently searched location. ? displays in the the location in the searched pattern where the execution time interval is maximum. indicates that the average processing timer value for task1 is 0.155 ms.
chapter 6 window reference user's manual u14410ej4v0um 100 [menu bar] (1) [file (f)] menu file (f) view (p) option (p) operation (o) help (h) open (o) ? ctrl+o save (s) ? ctrl+s close (c) open (o) opens the file select dialog box . the file containing the previously saved window contents is read. the default extension of the display file of this window is .azp. save (s) opens the file select dialog box . saves the current display information in this window to a display file, either as a new file or as a file with a different name. the default extension of the display file for this window is .azp. close (c) closes this window. (2) [view (v)] menu file (f) view (p) option (p) operation (o) help (h) split(+) (i) ctrl+[ split( ? ) (d) ctrl+] split(+) (i) increases histogram split number by 1. split(-) (d) decreases histogram split number by 1. (3) [option (p)] menu file (f) view (p) option (p) operation (o) help (h) pattern set (s) ? ctrl+p pattern set (s) opens the trace-level dialog box of this window.
chapter 6 window reference user's manual u14410ej4v0um 101 (4) [operation (o)] menu file (f) view (p) option (p) operation (o) help (h) active (a) ctrl+a hold (h) ctrl+h search (minimum) (n) ctrl+n search (maximum) (x) ctrl+x search (ascending) (f) ctrl+f search (descending) (b) ctrl+b active (a) switches this window from hold status to active status. hold (h) switches this window from active status to hold status. search (minimum) (n) displays the location with the minimum execution time in the calculated pattern. the up temporary cursor moves to the start position and the down temporary cursor moves to the end point of the searched pattern. this item has the same operation as the button. search (maximum) (x) displays the location with the maximum execution time in the calculated pattern. the up temporary cursor moves to the start position and the down temporary cursor moves to the end point of the searched pattern. this item has the same operation as the button. search (ascending order) (f) searches the pattern with the next longer execution time compared to the currently searched pattern after the [search (minimum) (n)] item is selected or the button is clicked. the up temporary cursor moves to the start position and the down temporary cursor moves to the end position of the searched pattern. this item has the same operation as the button. search (descending order) (b) searches the pattern with the next shorter execution time compared to the currently searched pattern after the [search (minimum) (n)] item is selected or the button is clicked. the up temporary cursor moves to the start position and the down temporary cursor moves to the end position of the searched pattern. this item has the same operation as the button. (5) [help (h)] menu file (f) view (p) option (p) operation (o) help (h) window help (w) f1 topic search (h) window help (w) displays the help topics for this window. topic search (h) displays the help dialog box of the az850.
chapter 6 window reference user's manual u14410ej4v0um 102 [caution] ? the closes when the is closed. [error] ? when an active already exists, trying to make a window in the hold status active causes an dialog box to appear. ? if a split number over 100 is specified, a warning sound is emitted.
chapter 6 window reference user's manual u14410ej4v0um 103 trace view window [task level] [trace view window] [outline] this window displays the az trace data displayed as an execution transition diagram. more detailed az trace data can be viewed by opening the from the . this window can be opened with one of the following operations. ? from the main menu in the , select [browse (b)], then [trace view (t )]. ? in the , click the button. ? in the , press the alt + b , t keys in that order. ? in the , press the ctrl + t keys. [window] figure 6-15 trace view window (task level) (a) (b) (c) (d) (e) (f) (a) time display area (b) address display area (c) task display area (d) event display area (e) parameter display area (f) return display area
chapter 6 window reference user's manual u14410ej4v0um 104 [function] this section describes the following items. (1) description of each area (2) az trace data display method (3) az trace viewing method (4) az trace data search method (1) description of each area (a) time display area displays the relative time from the az trace start time. the unit is milliseconds (msec). (b) address display area displays the user program execution address. it indicates the start address of the following instruction after the actual event occurrence location. (c) task display area displays the task name or interrupt name upon occurrence of an event. the task name (function name in the case of the rx850 pro) is displayed as follows when it is long. rx850: ? task name ?? rx850 pro: ? function name ? (xxxx) ? remark xxxx indicates the task id number. (d) event display area displays the type of az trace data event. the types of events that can be displayed are as follows. ? ? ? ? syscall means the issue of a system call. the name of the issued system call is indicated in parentheses. ? ? ? ? sysret means system call return. the name of the returned system call is indicated in parentheses. ? ? ? ? int means the interrupt entry. the name of the interrupt request is indicated in parentheses. ? ? ? ? intret means the interrupt exit. the name of the interrupt request is indicated in parentheses. ? ? ? ? taskstart means the initial task start. ? ? ? ? idle means transition to the idle status.
chapter 6 window reference user's manual u14410ej4v0um 105 (e) parameter display area if the az trace data is a system call, this area displays the name of the target object of the system call. the object name is displayed as follows when it is long. rx850: ? object name ?? rx850 pro: ? object name ? (xxxx) ? remark xxxx indicates the object id number. (f) return display area if the az trace data is a system call (return), this area displays the return value from the system call. (2) az trace data display method az trace data is displayed from the location specified in the execution transition diagram. [operation method] <1> indicate the az trace data display start position. if the up temporary cursor is displayed in the execution transition diagram, it becomes the display start position, and if it is not displayed, the beginning of the trace data becomes the display start position. <2> from the menu bar on the , select [browse (b)], then [trace view (t )], to open this window. remark when the is open, moving the up temporary cursor in the execution transition diagram causes the az trace data display position to move automatically.
chapter 6 window reference user's manual u14410ej4v0um 106 (3) az trace data viewing method figure 6-16 describes how to read the az trace data. figure 6-16 az trace data viewing method (task level) (a) at address 00000512 0.720 ms after system startup, task task_sub issued system call wup_tsk to task_main. (b) at address 00000512 1.074 ms after system startup, system call wup_tsk was returned with return value e_ok. for details about return values, refer to the rtos user?s manual. remark regarding sysret, if no event for which a system call was issued exists in the trace memory, the parentheses include no data. this is caused by execution from a location other than the beginning of the user program, etc. (4) az trace data search method when opened from the menu bar in this window, search using execution task/interrupt name, event type, system call arguments, etc., as conditions can be performed from the dialog box. for details about the search method, refer to the dialog box section. [operation method] <1> from the menu bar in this window, select [view (v)], then [search (s )]. <2> set the search conditions in the dialog box that is automatically opened. <3> the search in the new trace time direction is started by clicking the button in the dialog box, and the trace search in the old trace time direction is started by clicking the button. <4> update the az trace data display position with the search location as the beginning. (a) (b)
chapter 6 window reference user's manual u14410ej4v0um 107 [menu bar] (1) [file (f)] menu file (f) view (v) operation (o) help (h) save (s) ? ctrl+s close (c) save (s) opens the dialog box. saves the display information of the current window to a display file, either as a new file or as a file with a different name. the default extension of the display file for this window is .azt. close (c) closes this window. (2) [view (v)] menu file (f) view (v) operation (o) help (h) find (f) ? ctrl+f time (t) address (a) task (k) event (e) parameter (p) return value (r) find (f) opens the dialog box. time (t) specifies show/hide for the ? time ? item. select either show (s) or hide (i ) from the sub-menu. address (a) specifies show/hide for the ? address ? item. select either show (s) or hide (i ) from the sub-menu. task (k) specifies show/hide for the ? task ? item. select either show (s) or hide (i ) from the sub-menu. event (e) specifies show/hide for the ? event ? item. select either show (s) or hide (i ) from the sub-menu. parameter (p) specifies show/hide for the ? parameter ? item. select either show (s) or hide (i ) from the sub-menu. return value (r) specifies show/hide for the ? return ? item. select either show (s) or hide (i ) from the sub-menu. show (s) hide (i)
chapter 6 window reference user's manual u14410ej4v0um 108 (3) [operation (o)] menu file (f) view (v) operation (o) help (h) active (a) ctrl+a hold (h) ctrl+h active (a) switches this window from hold status to active status. hold (h) switches this window from active status to hold status. (4) [help (h)] menu file (f) view (v) operation (o) help (h) window help (w) f1 topic search (h) window help (w) displays the help topics for this window. topic search (h) displays the help of the az850. [caution] ? this window closes when the is closed. ? regarding sysret, if no event for which a system call was issued exists in the trace memory, the parentheses include no data. this is caused by execution from a location other than the beginning of the user program, etc. [error] ? if an active exists, making a window in the hold status active causes the dialog box to appear.
chapter 6 window reference user's manual u14410ej4v0um 109 trace search dialog box [task level] [trace search] [outline] this dialog box is used to set search conditions used for searching az trace data in the . execution task name/interrupt name, event type, system call argument, etc., can be set as the search condition. this dialog box can be opened with one of the following operations. ? in the menu bar in the , select [view (v)], then [search (s )]. ? in the , press the alt + v , s keys in that order. ? in the , press the ctrl + f keys. [window] figure 6-17 trace search dialog box (task level) (a) search item setting area (b) search condition setting area [function] this section describes the following items. (1) description of each area (2) search method (1) description of each area (a) search item setting area this area is used to specify the az trace data search items in the . task select this to perform search by task name/interrupt name. event select this to perform search by event type. parameter select this to perform search by system call argument.
chapter 6 window reference user's manual u14410ej4v0um 110 (b) search condition setting area this area is used to specify search conditions for each search item. the drop-down list displays the task names/interrupt names, event types, and system call arguments that exist in the collected az trace data. (2) search method [operation method] <1> in the search item setting area, select the item to be searched. <2> in the search item setting area, either input the search condition directly from the keyboard, or select it from the drop-down list. <3> click the button or the button. the search is performed as follows. ? if button is clicked locations that match the set search condition are searched in the new trace time direction, and the is displayed with the search location as the beginning. ? if button is clicked locations that match the set search condition are searched in the old trace time direction, and the is displayed with the search location as the beginning. a trace condition setting example in the dialog box is shown below. figure 6-18 trace search setting example (when searching task1 task)
chapter 6 window reference user's manual u14410ej4v0um 111 figure 6-19 trace search setting example (when searching locations for which task1 task has issued sta_tsk system call) figure 6-20 trace search setting example (when searching locations for which task1 task has issued sta_tsk system call to task2 task) [function buttons] operation target button function search condition locations that match the set search condition are searched in the new trace time direction, and the is displayed with the search location as the beginning. search condition locations that match the set search condition are searched in the old trace time direction, and the is displayed with the search location as the beginning. ? closes this dialog box. ? opens an explanation window for this window. [error] ? if no location that matches the set search condition exists in the az trace data, a warning sound is emitted. ? a warning sound is emitted when the button or the button is pressed without any item selected in the search item setting area.
chapter 6 window reference user's manual u14410ej4v0um 112 analyze window [function level] [analyze window] [outline] the collected az trace data is displayed in execution transition diagrams for each function by executing the user program. system timing errors and overall system verification and analysis can be done for single function from this window and the various windows displayed from it. this window can be opened with one of the following operations. ? in the az main window, select [browse (b)] from the menu bar, then [analyze (z )] and [function level (f )]. ? in the az main window, click the button. ? press the alt + b , z , f keys in that order. [window] figure 6-21 analyze window (function level) (g) (h) (a) (c) (i) (j) (k) (e) (n) (l) (o) (d) (f) (b) (p) (m) (a) up cursor (b) down cursor (c) up temporary cursor (d) down temporary cursor (e) object (f) analysis result (transition diagram) display (g) time display of up cursor position (h) time display of down cursor position (i) inter-cursor time display (j) time display of up temporary cursor position (k) data length (l) jump to beginning button (m) jump to end button (n) scale modify button (o) simple search buttons (p) time area
chapter 6 window reference user's manual u14410ej4v0um 113 [function] this section describes the following items. (1) description of each area (2) execution transition diagram display method (3) object names (4) execution transition diagram viewing method (5) verification method in execution transition diagram (1) description of each area (a) up cursor this cursor is used to check the processing time in az trace data and to specify ranges when performing various calculations. (it is used to specify the beginning of the range for which a calculation is to be done.) [operation method] click on the desired start location in the transition diagram with the mouse while pressing the shift key. (b) down cursor this cursor is used to check the processing time in az trace data and to specify ranges when performing various calculations. (it is used to specify the end of the range for which a calculation is to be done.) [operation method] click on the desired end location in the transition diagram with the mouse while pressing the ctrl key. (c) up temporary cursor this cursor is used to display the result position during search using the simple search button or pattern search, and to specify the start position when jumping to the debugger window. to display search results using the , this cursor indicates the start position of the searched pattern. when the up cursor is moved, the up temporary cursor also moves to the same position. [operation method] click the right button of the mouse. (d) down temporary cursor when displaying the search result in the , this cursor shows the end position of the searched pattern. when the down cursor is moved, the down temporary cursor also moves to the same position. (e) object these buttons indicate objects in az trace data. they indicate rtos-related resources such as tasks, events, and flags, and mailboxes. the function name pops up when the mouse pointer is placed on one of the buttons. for details about the object names, refer to section (3) object names below. when an object name is clicked, the simple search button appears. clicking the object name once more makes the simple search button disappear.
chapter 6 window reference user's manual u14410ej4v0um 114 (f) analysis result (transition diagram) display this area displays the analysis result for the user program. for details about the marks on the transition diagram, refer to section (4) execution transition diagram viewing method below. (g) time display of up cursor position this box displays the relative time from the start of az trace data collection until the up cursor position. the unit is milliseconds (msec). (h) time display of down cursor position this box displays the relative time from the start of az trace data collection until the down cursor position. the unit is milliseconds (msec). (i) inter-cursor time display this box displays the time interval between the up cursor and the down cursor. the unit is milliseconds (msec). (j) time display of up temporary cursor position this box displays the relative time from the start of az trace data collection until the up temporary cursor position. the unit is milliseconds (msec). (k) data length this box indicates the time interval from the start to the end of az trace data. (l) jump to beginning button this button is used to move the up cursor and display screen to the beginning of the az trace data. (m) jump to end button this button is used to move the down cursor and display screen to the end of the az trace data. (n) scale modify button this button is used to change the display scale for execution transition diagrams. any display scale can be selected using the pull-down menu or the spin buttons. (o) simple search buttons these buttons are used to search the operation of selected objects. when the button displayed upon clicking an object name is clicked, the object operation is searched in the time axis direction in the execution transition diagram, and the up temporary cursor moves to the search position. when the button is clicked, the operation of the object selected in the opposite direction as the time axis is searched and the up temporary cursor moves to the search position. (p) time area this area displays the standard event interval time displayed in the execution transition diagram. the unit is displayed at the right extremity of this area. in the example shown in figure 6-5, the unit is milliseconds (msec).
chapter 6 window reference user's manual u14410ej4v0um 115 (2) execution transition diagram display method the execution transition diagram for the collected az trace data can be displayed in this window by performing the following operation. [operation method] <1> collect the az trace data. <2> open this window. (select [browse (b)] from the menu bar in the az main window, then select [analyze (z)], [function level (f )], or click the button on the tool bar.) data is not automatically updated in this window. therefore, to display as an execution transition diagram trace data newly collected by re-executing the user program, perform upload (from the az main window, select [operation (o)], then [upload [u ], or click the button]). (3) object names the buttons that indicate objects are displayed as follows. ? ? ? ? function names a function name is obtained from the symbol information included in a load module and displayed. ? ? ? ? interrupts and i/o interrupts and i/o are displayed with the interrupt handler name and i/o name obtained from the debugger. the function name pops up when the mouse pointer is placed on the object button. ? ? ? ? other objects objects set in the ?hide objects? area in the dialog box this object indicates execution of tasks other than the one specified only when a task is specified by ?task select? on the ?object select? dialog box (at ?task/function? level). this object indicates that the corresponding information does not exist in the load module when an attempt is made to obtain a function name (it is displayed if the ?-g? or ?-xaz? option is not specified at compilation).
chapter 6 window reference user's manual u14410ej4v0um 116 (4) execution transition diagram viewing method there are the following three display modes for execution transition diagrams, which can be selected by selecting from the menu bar in the [view (v)], then [display mode (v )]. (a) vertical line delete mode (b) standard mode (c) detailed mode (default) remark whether or not to display grid lines in transition diagrams can be selected by selecting from the menu bar in this window [view (v)], then [grid mode (g )]. (a) vertical line delete mode this mode displays horizontal lines only for cpu run locations. the vertical line delete mode is suitable when analyzing az trace data in a wide range. figure 6-22 analyze window (function level) (vertical line delete mode) (b) standard mode this mode displays cpu transition traces as linked lines. figure 6-23 analyze window (function level) (standard mode)
chapter 6 window reference user's manual u14410ej4v0um 117 (c) detailed mode (default) in addition to cpu transition traces, the marks (a) to (i) show accesses from/to the i/o. the meanings of the marks (a) to (i) are as follows. the detailed mode is suitable when analyzing access to objects. figure 6-24 analyze window (function level) (detailed mode) (a) funk3 calls funk4. (b) fun4 returns the processing to funk3. (c) funk3 calls funk5. (d) an interrupt is acknowledged. (e) funk1 is called by the interrupt handler. (f) funk1 outputs (writes) data to port 1. (g) funk1 inputs (reads) data from port 1. (h) the interrupt processing is complete and the processing has returned to funk5. (i) funk5 returns the processing to funk3. the black solid line indicates the processing of a function and the blue solid line indicates the processing until execution returns to the function that was interrupted. table 6-11 list of marks on execution transition diagram (function level) mark access target indicates output (write) to i/o. indicates input (read) from i/o.
chapter 6 window reference user's manual u14410ej4v0um 118 (5) verification method in execution transition diagram the collected az trace data can be verified in this window using the following methods. (a) object processing search (b) search using pattern search dialog box (c) search using (a) object processing search the specified object processing can be searched using the simple search button. [operation method] <1> if the up temporary cursor is displayed in the execution transition diagram, move the up temporary cursor to the search start position. if it is not displayed, move the up cursor to the search start position. <2> click the object name whose operation is to be verified. the simple search button is displayed as a result. the simple search button is displayed immediately on the right of the object name and also at the right end of the transition diagram. <3> click the simple search button. : the specified object processing is searched in the time axis direction in the execution transition diagram, and the up temporary cursor moves to the search position. : the specified object processing is searched in the opposite direction to the time axis in the execution transition diagram, and the up temporary cursor moves to the search position. if the searched point is not displayed on the currently displayed execution transition diagram, that point is moved on the graph so that it coincides with 0 on the graduation. the simple search button disappears from the screen when the button indicating the object name is clicked again. (b) search using dialog box in the dialog box, the specified pattern is searched on the transition diagram. the search results are displayed by the up temporary cursor on the transition diagram. when using the dialog box, the transition status of functions and interrupts can be searched. for details, refer to the dialog box description. (c) search using in the , the specified pattern set in the dialog box is searched on the transition diagram. the search results are displayed by the up and down temporary cursors on the transition diagram. when using the , function and interrupt processing sections can be searched. for details, refer to the description.
chapter 6 window reference user's manual u14410ej4v0um 119 [function buttons] (1/2) operation target button function ? opens the dialog box. the previously saved trace data is read and a transition diagram is displayed. ? opens the dialog box. the trace data currently displayed in the is saved to a file. ? sets the transition diagram grid mode on/off. ? sets the vertical line delete mode as the transition diagram display mode. ? sets the standard mode as the transition diagram display mode. ? sets the detailed mode as the transition diagram display mode. ? opens the dialog box. ? opens the dialog box. ? opens the and displays the cpu utilization rate between the up cursor and down cursor. if an active is already displayed, the contents of this window are updated. ? opens the dialog box. when pattern conditions are set, the is displayed between the up cursor and down cursor. if an active is already displayed, the contents of this window are updated. ? opens the from the position specified with the up temporary cursor. if an active is already displayed, the contents of this window are updated. ? opens between the up cursor and down cursor. if an active is already displayed, the contents of this window are updated. ? opens the from the position specified with the up temporary cursor. if an active is already displayed, the contents of this window are updated. ? opens the from the position specified with the up temporary cursor. if an active is already displayed, the contents of this window are updated. ? displays the memory list on the debugger from the position specified with the up temporary cursor. if the memory list is already displayed in an active window, the contents of that window are updated.
chapter 6 window reference user's manual u14410ej4v0um 120 [menu bar] (1) [file (f)] menu file (f) view (v) operation (o) browse (b) jump (j) help (h) open (o) ? save (s) ? save as (a) ? print (p) close (c) open (o) opens the dialog box. the previously saved files displayed in this window are read. the default extension of the display file for this window is .az. save (s) this menu item is not supported in this version. save as (a) opens the dialog box. saves the currently displayed execution transition diagram data to a display file, either as a new file or as a file with a different name. the default extension of the display file for this window is .az. print (p) this menu item is not supported in this version. close (c) closes this window. caution if the execution transition diagram is not displayed, the [save as (a)] item cannot be selected. (2) [view (v)] menu file (f) view (v) operation (o) browse (b) jump (j) help (h) grid mode (g) display mode (v) grid (g) display reduction (l) no grid (u) display expansion (t) search (s) vertical line delete mode (o) select object (o) standard mode (s) detailed mode (d) grid mode (g) displays the submenu for specifying display/hide grid lines on execution transition diagram. the following submenu is displayed. grid (g) display grid lines. no grid (u) don?t display grid lines. display mode (v) displays the submenu for specifying the execution transition diagram display mode. the following submenu is displayed.
chapter 6 window reference user's manual u14410ej4v0um 121 vertical line delete mode (o) does not display vertical lines on execution transition diagram. this item has the same operation as the button. standard mode (s) displays only the cpu execution transitions. this item has the same operation as the button. detailed mode (d) at the task level, indicates the real-time os system call access status, and at the function level, indicates the cpu?s execution transition and i/o access with marks (default). this item has the same operation as the button on the tool bar. display reduction (l) reduces the execution transition diagram display scale. this item performs the same operation as reduction using the scale modify button (refer to figure 6-21). display expansion (t) expands the execution transition diagram display scale. this item performs the same operation as expansion using the scale modify button (refer to figure 6-21). search (s) opens this window?s trace level dialog box. this item performs the same operation as the button. object select (o) opens this window?s trace level dialog box. this item has the same operation as the button. (3) [operation (o)] menu file (f) view (v) operation (o) browse (b) jump (j) help (h) active (a) hold (h) active (a) switches this window from hold status to active status. hold (h) switches this window from active status to hold status. (4) [browse (b)] menu file (f) view (v) operation (o) browse (b) jump (j) help (h) cpu? pattern? trace? callgraph? cpu? opens this window?s trace-level . if an active is already displayed, the contents of this window are updated. this item has the same operation as the button.
chapter 6 window reference user's manual u14410ej4v0um 122 pattern? opens this window?s trace level dialog box. when a pattern is set in this dialog box, the appears. if an active is already displayed, the contents of this window are updated. this item has the same operation as the button. trace? opens this window?s trace level . if an active is already displayed, the contents of this window are updated. this item has the same operation as the button. callgraph? opens between the up cursor and down cursor. if an active is already displayed, the contents of this window are updated. this item has the same operation as the button. (5) [jump (j)] menu file (f) view (v) operation (o) browse (b) jump (j) help (h) source text? assemble? memory? source (s) displays the source text on the debugger from the position specified with the up temporary cursor. if the source text is already displayed in an active window, the contents of this window are updated. this item has the same operation as the button. assemble (a) displays the disassemble text on the debugger from the position specified with the up temporary cursor. if the disassemble text is already displayed in an active window, the contents of this window are updated. this item has the same operation as the button. memory (m) displays the memory list on the debugger from the position specified with the up temporary cursor. if the memory list is already displayed in an active window, the contents of this window are updated. this item has the same operation as the button. caution if no address information exists for the position specified with the up temporary cursor, none of the items in the [jump (j)] menu can be selected.
chapter 6 window reference user's manual u14410ej4v0um 123 (6) [help (h)] menu file (f) view (v) operation (o) browse (b) jump (j) help (h) window help (w) topic search (h) window help (w) displays the help topics for this window. topic search (h) displays the help dialog box of the az850. [caution] ? data is not automatically updated in this window. thus, to collect new trace data by re-executing the application program, data update by performing upload (from the az main window, select [operation (o)], then [upload (u )]) must be performed. ? if there is no address information in the trace data at the position specified with the up temporary cursor, none of the items in the [jump (j)] menu can be selected. [error] ? if an active execution transition display window exists, making a window in the hold status active causes the dialog box to appear.
chapter 6 window reference user's manual u14410ej4v0um 124 measurement select dialog box [function level] [measurement select] [outline] this dialog box is used to select an object to be measured when az trace data at the function level or task/function level is collected. as the default assumption, all the objects are measured. by using this dialog box, therefore, the objects that do not have to be measured can be specified. this dialog box can be opened with one of the following operations. ? from the menu bar in the , select [option (p)], [select measurement target (m)], then [function level (f)?]. ? in the , press the alt + p , m , f keys in that order. [window] figure 6-25 measurement select dialog box (function level) mode select area display area of options display area of objects not be measured to be measured sort mode select area for sort mode select area i/o access measurement objects not be measured for objects to be measured setting area [function] this section describes the following items. (1) description of each area (2) method for limiting objects to be measured (3) method for adding objects to be measured
chapter 6 window reference user's manual u14410ej4v0um 125 (1) description of each area (a) mode select area this area is used to select the display when displaying a list. the following two modes can be selected. ? file mode in this mode, the objects to be measured are selected according to the file group (?.c, ?.s) of the downloaded module. a list is displayed in the hierarchy of load module name file name function name. ? selection mode this mode is used to select the objects to be measured according to the selection group (?.text) of the downloaded module. a list is displayed in the hierarchy of load module name section name function name. (b) display area for objects to be measured this area lists the objects to be traced as the function-level az trace data. (c) display area for objects not to be measured this area lists the objects not to be traced as the function-level az trace data, from all the objects included in the load module. it also lists the objects to be traced as number-level az trace data. (d) sort mode select area for objects to be measured this area specifies the order of arrangement on the list of measurement objects. the following sorting levels can be selected from the drop-down list: none: no-sort mode (default) address: sorting in order of addresses on load module. name: sorting in order of object identification names. this area lists the objects to be traced as the az trace data of the above levels. (e) sort mode select area for objects not to be measured this area specifies the order of arrangement on the list of hide objects. the following sorting levels can be selected from the drop-down list: none: no-sort mode (default) address: sorting in order of addresses on load module. name: sorting in order of object identification names. (f) i/o access select area this is a check box that selects whether i/o access is to be measured or not. if this box is checked, i/o access is measured.
chapter 6 window reference user's manual u14410ej4v0um 126 (2) selecting objects not to be measured the objects not to be measured can be limited (deleted) by the following operation: [operation method] <1> select the display mode of the objects to be displayed on the list from the following two under mode select: ? file mode: displays the load module name file name function name, in that order. ? selection mode: displays the load module name section name function name, in that order. <2> select the object not to be measured from the list displayed under measurement objects. <3> click the function button < click the function button ok . by double-clicking the location of the section name/file name (*.text/*.c, *.s) on the dialog box, the function names existing in that section/file can be displayed or not displayed. (3) adding object to be measured [operation method] an object to be measured can be added by the following operation: <1> select the display mode of the object to be displayed on the list from the following two under mode select: ? file mode: displays the load module name file name function name, in that order. ? selection mode: displays the load module name section name function name, in that order. <2> add the object to be measured to the list displayed under hide objects. <3> click the function button measure>> . the selected object will move to measurement objects. if the destination of the object has been specified, the object is inserted immediately before the specified destination. if no destination has been specified, the object is inserted at the end. <4> click the function button ok . by double-clicking the location of the section name/file name (*.text/*.c, *.s) in the dialog box, the function names existing in that section/file can be displayed or not displayed.
chapter 6 window reference user's manual u14410ej4v0um 127 pattern search dialog box [function level] [pattern search] [outline] this dialog box is used to set search conditions when searching given events in execution transition diagrams. these events refer to switching points from a specified function or interrupt to a specified function or interrupt, or a given status of a specified system call. this dialog box can be opened with one of the following operations. ? from the menu bar in the , select [view (v)], then [search (s )]. ? in the click the button. ? in the , press the alt + v , s keys in that order. [window] figure 6-26 pattern search dialog box (function level) (a) search mode (b) search condition selection area setting area
chapter 6 window reference user's manual u14410ej4v0um 128 [function] this section describes the following items. (1) description of each area (2) search method (1) description of each area (a) search mode selection area this area is used to select the search mode. the search mode indicates the type of event to be searched in the execution transition diagram. table 6-12 lists the various search modes. table 6-12 pattern search modes (function level) search mode description function call search of location where a function was called. function return search of location where a function was returned. interrupt search of location where an interrupt occurred. interrupt return search of location where an interrupt handler was terminated. i/o access search of location where i/o was accessed. (b) search condition setting area this area is used to set the search conditions for the search mode specified in the search mode selection area. the contents displayed in this area differ depending on the specified search mode. the search conditions set for each item can be directly input from the keyboard or selected from the drop- down list. table 6-13 lists the conditions that can be set. table 6-13 pattern search conditions (function level) (when function call is specified as search mode) item meaning of condition caller specify a caller function. if any function will do, specify ?any?. callee specify a callee function. if any function will do, specify ?any?. table 6-14 pattern search conditions (function level) (when function return is specified as search mode) item meaning of condition caller specify the name of a function from which execution is to return. if any function will do, specify ?any?. callee specify the name of a function to which execution is to return. if any function will do, specify ?any?.
chapter 6 window reference user's manual u14410ej4v0um 129 table 6-15 pattern search conditions (function level) (when interrupt is specified as search mode) item meaning of condition function specify the name of a function/interrupt at the interrupt source. if any function/interrupt will do, specify ?any?. interrupt specify the name of an interrupt. if any interrupt will do, specify ?any?. table 6-16 pattern search conditions (function level) (when interrupt return is specified as search mode) item meaning of condition function specify the name of an interrupt. if any interrupt will do, specify ?any?. interrupt specify the name of a function/interrupt to which execution is to return from an interrupt. if any function/interrupt will do, specify ?any?. table 6-17 pattern search conditions (function level) (when i/o access is specified as search mode) item meaning of condition function specify the name of a function/interrupt for i/o access. if any function/interrupt will do, specify ?any?. i/o specify the name of an i/o to be accessed. if any i/o will do, specify ?any?. access specify the access status of the i/o (read, write, or read/write). [function buttons] operation target button function search condition the location corresponding to the specified search condition is searched from the position indicated by the up cursor or the up temporary cursor in the execution transition diagram along the time axis. the up temporary cursor in the execution transition diagram moves to the search result position. search condition the location corresponding to the specified condition is searched from the position indicated by the up cursor or the up temporary cursor in the execution transition diagram in the direction opposite to the time axis. the up temporary cursor in the execution transition diagram moves to the search result position. ? closes this dialog box. ? opens an explanation window for this dialog box. [error] if no event meeting the set search condition exists in the az trace data, a warning sound is emitted.
chapter 6 window reference user's manual u14410ej4v0um 130 object select dialog box [function level] [object select] [outline] this dialog box is used to select objects to be displayed and to change their sequence in the execution transition diagram of the function-level . this dialog box can be opened with one of the following operations. ? from the menu bar in the , select [view (v)], then [object select (o )]. ? in the , click the button. ? in the , press the alt + v , o keys in that order. [window] figure 6-27 object select dialog box (function level) task select area hide objects area show objects area sort mode select area sort mode select area for hide objects for show objects [function] this section describes the following items. (1) description of each area (2) shown object limitation method (3) shown object addition method (4) shown object sequence modification method
chapter 6 window reference user's manual u14410ej4v0um 131 (1) description of each area (a) task select area this area selects the task to be displayed on the analyze window. when a task name is selected, the execution transition diagram of the function level of the selected task is displayed. if ?all? is selected, the execution transition diagrams of the function levels of all the tasks are displayed. note, however, that a task can be selected only when an az trace has been executed at the task level/function level. (b) hide objects area this area displays the list of objects among those included in az trace data that are not displayed in execution transition diagrams. (c) show objects area this area displays the list of objects displayed in execution transition diagrams. the default is to display all objects included in the az trace data. the sequence in which objects are listed in this area is reflected in execution transition diagrams. (d) sort mode area this area is used to select the display sequence used in the lists in the hide objects area and the show objects area. (2) shown object limitation method the objects that are displayed in execution transition diagrams can be limited (deleted) by performing the following operation. [operation method] <1> select objects that do not need to be displayed in execution transition diagrams from the list displayed in the show object area. <2> click the < click the ok button to reflect these changes in the execution transition diagram. remark hidden objects are grouped into the object and displayed in execution transition diagrams. (3) shown object addition method objects to be displayed in execution transition diagrams can be added by performing the following operation. [operation method] <1> select the objects to be displayed in execution transition diagrams among those listed in the hide objects area. <2> click the show>> button. the selected objects are moved to the show objects area. if, at this time, the destination is specified, the objects in question are inserted immediately before this specified destination, and if the destination is not specified, they are inserted at the very end of the list. <3> click the ok button to reflect these changes in the execution transition diagram.
chapter 6 window reference user's manual u14410ej4v0um 132 (4) shown object sequence modification method objects in the hide objects area and show objects area are displayed classified into interrupts, idle, event flags, semaphores, mailboxes, and memory pools (default). to modify the display sequence, select a setting from the sort mode drop-down list in the sort mode area. the display sequence in the show objects area is reflected to the execution transition diagram. the following sort modes can be selected. sort mode meaning none unsorted mode (default) appear order of appearance in az trace data name name sequence for objects priority priority sequence (however, this setting is valid only for ta sks.) [function buttons] operation target button function object moves objects selected in the show objects area to the hide objects area. if the destination is specified, the objects are inserted immediately this specified destination, and if the destination is not specified, they are inserted at the very end of the list. object moves objects selected in the hide objects are to the show objects area. if the destination is specified, the objects are inserted immediately this specified destination, and if the destination is not specified, they are inserted at the very end of the list. ? displays objects on execution transition diagram based on the objects displayed in the show objects area. ? closes this dialog box. ? opens an explanation window for this dialog box.
chapter 6 window reference user's manual u14410ej4v0um 133 cpu window [function level] [cpu window] [outline] this window displays the cpu usage status in the time range between the up cursor and the down cursor in the execution transition diagram. from this window, it is possible to check the execution time for specified tasks, interrupts, etc., and to evaluate the target data performance from the idle time and interrupt time. this window can be opened with one of the following operations. ? from the menu bar in the , select [browse (b)], then [cpu utilization rate (c )]. ? in the , click the button. ? in the , press the alt + b , c keys in that order. [window] figure 6-28 cpu window (function level) (a) (b) (c) (d) (e) (f) (g) (a) up cursor position time display (b) down cursor position time display (c) up/down cursor time display (d) object name (e) object execution time display (net time/gross time) (f) number of times of object execution (g) cpu utilization rate graph display
chapter 6 window reference user's manual u14410ej4v0um 134 [function] this section describes the following items. (1) description of each area (2) cpu utilization rate display method (3) jump function in (1) description of each area (a) up cursor position time display displays the time when cpu utilization rate calculation was started. this is the relative time from the start of az trace data collection until the position of the up cursor in the execution transition diagram. the unit is milliseconds (msec). (b) down cursor position time display displays the time when cpu utilization rate calculation was ended. this is the relative time from the start of az trace data collection until the position of the down cursor in the execution transition diagram. the unit is milliseconds (msec). (c) up/down cursor position time display displays the time interval during which cpu utilization rate data was calculated. this is the time interval between the up cursor and the down cursor. the unit is milliseconds (msec). (d) object name displays list of object names that exist within calculation time interval. (e) object execution time display displays the execution time of the object (net time/gross time). net time: execution time including child function gross time: execution time excluding child function (f) number of times of object execution displays the number of times the object has been executed. (g) cpu utilization rate graph display displays how much each object uses the cpu in percentages.
chapter 6 window reference user's manual u14410ej4v0um 135 (2) cpu utilization rate display method cpu utilization rate is calculated during the time interval between the up cursor and the down cursor in the execution transition diagram. [operation method] <1> define the interval for which the cpu utilization rate is to be calculated by setting the up cursor and down cursor in the execution transition diagram. <2> from the menu bar in the , select [browse (b)], then [cpu utilization rate (c )] to open this window. remark when the is open, moving the up cursor or the down cursor in the execution transition diagram causes automatic update of the cpu utilization rate. (3) jump function from after specifying an object in the list with the mouse, selecting [jump (j)] in this window causes the next window to appear. ? source text source text corresponding to the specified object is displayed on the debugger. if the source text is already being displayed on an active window, the displayed contents on that window are updated. ? disassemble text displays disassemble text corresponding to the specified object on the debugger. if the disassemble text is already being displayed on an active window, the displayed contents on that window are updated. ? memory list displays a memory list corresponding to the specified object on the debugger. if the memory list is already being displayed on an active window, the displayed contents on that window are updated. ? pattern distribution opens the ?pattern window? of the function level corresponding to the specified object. if an active ?pattern window? is already being displayed, the displayed contents on that window are updated. the pattern displayed here is automatically set as follows. start point: task switch [any] [specified task] ; [valid] end point: task switch [specified task] [any] ; [valid] (meaning: pattern distribution of processing zone from switching location of [any object] [specified object] to switching location of [specified object] [any object])
chapter 6 window reference user's manual u14410ej4v0um 136 ? call graph displays the corresponding the specified object. if an active is already displayed, its contents are updated. [function buttons] operation target button function ? opens the dialog box. the display data in the previously saved cpu window is read and displayed. ? opens the dialog box. the display data displayed in the current cpu window is saved to a file. ? displays the graph per execution time. ? displays the graph per total execution time. ? changes the graph display sequence to order of appearance of trace data. ? changes the graph display sequence to object name sequence (alphabetical order). ? changes the graph display sequence to order of longest gross time (execution time including child functions). ? changes the graph display sequence to order of longest gross time (execution time excluding child functions). ? changes the graph display sequence to order of most times executed. ? changes the graph display sequence to order of appearance in . object displays the corresponding to the specified object. if an active is already being displayed, its contents are updated. object displays the < disassemble window> corresponding to the specified object. if an active is already being displayed, its contents are updated. object displays the corresponding to the specified object. if an active is already being displayed, its contents are updated. object displays the corresponding to the specified object. if an active is already displayed, its contents are updated. object displays the corresponding to the specified object. if an active is already being displayed, its contents are updated.
chapter 6 window reference user's manual u14410ej4v0um 137 [menu bar] (1) [file (f)] menu file (f) view (v) operation (o) jump (j) help (h) open (o) ? save as (a) ? print (p) ? close (c) ? open (o) opens the dialog box. the previous saved display file in this window is read. the default extension of the display file for this window is .azc. save as (a) opens the dialog box. save the display file containing the information currently displayed in this window for the first time or with a new name. the default extension of the display file for this window is .azc. print (p) this menu item is not supported in this version. close (c) closes this window. caution if the cpu utilization rate graph is not displayed, [save as (a)] cannot be selected. (2) [display (v)] menu file (f) view (v) operation (o) jump (j) help (h) run time (once) run time (total) sort appear sort name sort grass time sort net time sort count sort analyze run time (once) displays a graph per individual execution time. this item has the same operation as the button. run time (total) displays a graph per total execution time. this item has the same operation as the button. sort appear changes the graph display sequence to order of appearance of az trace data. this item has the same operation as the button. sort name changes the graph display sequence to name sequence (alphabetical order). this item has the same operation as the button.
chapter 6 window reference user's manual u14410ej4v0um 138 sort gross time changes the graph display sequence to order of longest gross time (execution time including child functions). this item has the same operation as the button. sort net time changes the graph display sequence to order of longest gross time (execution time excluding child functions). (default) this item has the same operation as the button. sort count changes the graph display sequence to order of most times executed. this item has the same operation as the button. sort analyze changes the graph display sequence to object appearance sequence in execution transition diagram. this item has the same operation as the button. (3) [operation (o)] menu file (f) view (v) operation (o) jump (j) help (h) active (a) hold (h) active (a) switches this window from hold status to active status. hold (h) switches this window from active status to hold status. (4) [jump (j)] menu file (f) view (v) operation (o) jump (j) help (h) source text? assemble? memory? pattern? call graph? source text... opens the corresponding to the specified object. if an active is already being displayed, its contents are updated. this item has the same operation as the button. assemble... opens the corresponding to the specified object. if an active < disassemble window> is already being displayed, its contents are updated. this item has the same operation as the button. memory... opens the corresponding to the specified object. if an active is already being displayed, its contents are updated. this item has the same operation as the button.
chapter 6 window reference user's manual u14410ej4v0um 139 pattern? opens the function-level corresponding to the specified object. if an active is already being displayed, the contents of this window are updated. the patterns displayed here is automatically set as follows. start point: function call [any] [specified object] ; [valid] end point: function return [specified object] [any] ; [valid] this item has the same operation as the button. call graph... displays the corresponding to the specified object. if an active is already being displayed, its contents are updated. this item has the same operation as the button. (5) [help (h)] menu file (f) view (v) operation (o) jump (j) help (h) window help (w) topic search (h) window help (w) displays the help topics for this window. topic search (h) displays the help dialog box of the az850. [caution] ? this window closes when the function-level is closed. [error] ? when an active already exists, trying to make a in the hold status active causes an dialog box to appear.
chapter 6 window reference user's manual u14410ej4v0um 140 pattern set dialog box [function level] [pattern set] [outline] this dialog box is used to set the pattern search mode and the search conditions as pattern settings for displaying the . a pattern refers to the processing interval (cpu run interval) from the occurrence of a given event (task switching, interrupt occurrence, system call status, etc.) to the end of that event or the occurrence of a different event. this dialog box can be opened with one of the following operations. ? from the menu bar in the , select [browse (b)], then [pattern distribution (p )]. ? in the , click the button. ? in the , press the alt + b , p keys in that order. ? from the menu bar in the , select [browse (b)], then [pattern distribution (p )]. ? in the , click the button. ? in the , press the alt + p , s keys in that order. [window] figure 6-29 pattern set dialog box (function level) pattern mode selection pattern condition setting area area for start point for start point pattern mode selection area for end point pattern condition set area interrupt servicing for end point selection area
chapter 6 window reference user's manual u14410ej4v0um 141 [function] this section describes the following. (1) description of each area (2) pattern search/calculation method (1) description of each area (a) pattern mode selection area this area is used to select the pattern mode. the pattern mode indicates the type of event used for the pattern start point (from:) to the end point (to:) to be calculated in the . table 6-18 lists the various pattern modes. table 6-18 pattern modes (function level) pattern mode description function call mode using location where a function was called as start/end points. function return mode using location where a function was returned as start/end points. interrupt mode using location where an interrupt occurred as start/end points. interrupt return mode using location where an interrupt handler was terminated as start/end points. i/o access mode using location where i/o was accessed as start/end points. (b) condition setting area this area is used to set the pattern condition for the pattern mode for the pattern start/end points specified in (a). the contents displayed in this area differ according to the specified pattern mode. the pattern conditions set for each item can either be directly input from the keyboard or selected from the drop-down list. ? if ?function call? is specified as the pattern mode  caller: specify a caller function. if any function will do, specify ?any?.  callee: specify a callee function. if any function will do, specify ?any?. ? if ?function return? is specified as the pattern mode  caller: specify the name of a function from which execution is to return. if any function will do, specify ?any?.  callee: specify the name of a function to which execution is to return. if any function will do, specify ?any?. ? if ?interrupt? is specified as the pattern mode  function: specify the name of a function/interrupt at the interrupt source. if any function/interrupt will do, specify ?any?.  interrupt: specify the name of an interrupt. if any interrupt will do, specify ?any?.
chapter 6 window reference user's manual u14410ej4v0um 142 ? if ?interrupt return? is specified as the pattern mode  interrupt: specify the name of an interrupt. if any interrupt will do, specify ?any?.  function: specify the name of a function/interrupt to which execution is to return from an interrupt. if any function/interrupt will do, specify ?any?. ? if ?i/o access? is specified as the pattern mode  function: specify the name of a function/interrupt for i/o access. if any function/interrupt will do, specify ?any?.  i/o: specify the name of an i/o to be accessed. if any i/o will do, specify ?any?.  access: specify the access status of the i/o (read, write, or read/write). (2) pattern search/calculation method the specified pattern is searched/calculated and the is opened by performing the following operation. [operation method] <1> set the up cursor and the down cursor in the execution transition diagram in the interval for which the pattern distribution status is to be calculated, in order to open this dialog box. <2> select the pattern mode to be used as the start point of the pattern to be calculated from the ?from:? item in this dialog box. <3> select the pattern mode to be used as the end point of the pattern to be calculated from the ?to: item. <4> in the search condition setting area, either input the pattern conditions for ?from:? and ?to:? directly from the keyboard, or select them from the drop-down list. <5> click the ok button. [function buttons] operation target button function pattern condition searches/calculates the specified pattern in the time interval set with the up cursor and the down cursor in the execution transition diagram and opens the . ? closes this dialog box. ? opens an explanation window for this dialog box. [error] ? if no pattern satisfying the set search conditions exists in the az trace data, the dialog box appears.
chapter 6 window reference user's manual u14410ej4v0um 143 pattern window [function level] [pattern window] [outline] the pattern set in the is searched in the time interval set with the up cursor and the down cursor in the execution transition diagram, and the a histogram of the frequency of occurrence of this pattern is displayed in this window. a pattern refers to the processing interval (cpu run interval) from the occurrence of a given event (task switching, interrupt occurrence, system call status, etc.) to the end of that event or the occurrence of a different event. the execution time worst value and average value for various processes of the user program can be obtained from this window. this window can be opened with one of the following operations. ? from the menu bar in the , select [browse (b)], then [pattern distribution (p )], and perform settings in the dialog box. ? in the , click the button and set the condition in the dialog box. ? in the , press the alt + b , p keys in that order and perform settings in the dialog box. ? from the menu in the cpu window, select [jump (j)], then [pattern distribution (p )]. ? in the , click the button.
chapter 6 window reference user's manual u14410ej4v0um 144 [window] figure 6-30 pattern window (function level) (a) (b) (c) (d) (e) (g) (h) (f) (a) up cursor position time display (b) down cursor position time display (c) up/down cursor time display (d) pattern set condition display (e) average value display (f) histogram split display (g) processing time display area (h) pattern distribution display area [function] this section describes the following items. (1) description of each area (2) pattern distribution display method (3) pattern distribution viewing method (4) search from (1) description of each area (a) up cursor position time display displays the time when pattern distribution status calculation was started. this is the relative time from the start of az trace data collection until the position of the up cursor in the execution transition diagram. the unit is milliseconds (msec).
chapter 6 window reference user's manual u14410ej4v0um 145 (b) down cursor position time display displays the time when pattern distribution status collection ended. this is the relative time from the start of az trace data collection until the position of the down cursor in the execution transition diagram. the unit is milliseconds (msec). (c) up/down cursor position time display displays the time interval during which the pattern distribution status was calculated. this is the time interval between the up cursor and the down cursor. the unit is milliseconds (msec). (d) pattern setting condition display displays the pattern conditions set in the dialog box. (e) average value display displays the average value for the set pattern execution time. the unit is milliseconds (msec). (f) histogram split number display displays the histogram split number. the split number can be freely changed from 1 to 100 by clicking the button on the right. (g) processing time display area displays the time interval during which the set pattern was processed. (h) pattern distribution display area displays in histogram form the processing time of the set pattern calculated during the time interval set with the up cursor and the down cursor in the execution transition diagram. (2) pattern distribution display method pattern distribution calculation is done during the time interval set with the up cursor and the down cursor in the execution transition diagram. [operation method] <1> set the up cursor and the down cursor in the execution transition diagram to define the interval for which the pattern distribution status is to be calculated. <2> from the menu bar in the , select [browse (b)], then [pattern distribution (p)]. <3> in the dialog box that opens automatically, set the conditions of the pattern to be calculated and displayed, and then click the ok button. remark when the is open, moving the up cursor or the down cursor in the execution transition diagram causes automatic update of the pattern distribution contents.
chapter 6 window reference user's manual u14410ej4v0um 146 (3) search from by using the function buttons in the , the pattern locations for which the execution time interval is minimum/maximum (or ascending/descending order of time interval) are searched, and the search results are displayed on an execution transition diagram. the up temporary cursor moves to the start position of the searched pattern, and the down temporary cursor moves to the end position. [function buttons] operation target button function ? opens the dialog box. the previously saved contents are read and displayed. ? opens the dialog box. the display data currently displayed in the is saved to a file. ? opens the dialog box. ? displays in the the location in the searched pattern where the execution time interval is minimum. ? searches the location with the next smaller execution time interval compared to the currently searched location. ? searches the location with the next larger execution time interval compared to the currently searched location. ? displays in the the location in the searched pattern where the execution time interval is maximum.
chapter 6 window reference user's manual u14410ej4v0um 147 [menu bar] (1) [file (f)] menu file (f) view (p) option (p) operation (o) help (h) open (o)? save as (a)? print (p) close (c) open (o) opens the file select dialog box . the file containing the previously saved window contents is read. the default extension of the display file of this window is .azp. save as (a) opens the file select dialog box . saves the current display information in this window to a display file, either as a new file or as a file with a different name. the default extension of the display file for this window is .azp. print (p) this menu item is not supported in this version. close (c) closes this window. (2) [view (v)] menu file (f) view (p) option (p) operation (o) help (h) split(+) (i) split( ? ) (d) split(+) (i) increases histogram split number by 1. split(-) (d) decreases histogram split number by 1. (3) [option (p)] menu file (f) view (p) option (p) operation (o) help (h) pattern set (s)? pattern set (s) opens the trace-level dialog box of this window.
chapter 6 window reference user's manual u14410ej4v0um 148 (4) [operation (o)] menu file (f) view (p) option (p) operation (o) help (h) active (a) hold (h) search (minimum) (n) search (maximum) (x) search (ascending) (f) search (descending) (b) active (a) switches this window from hold status to active status. hold (h) switches this window from active status to hold status. search (minimum) (n) displays the location with the minimum execution time in the calculated pattern. the up temporary cursor moves to the start position and the down temporary cursor moves to the end point of the searched pattern. this item has the same operation as the button. search (maximum) (x) displays the location with the maximum execution time in the calculated pattern. the up temporary cursor moves to the start position and the down temporary cursor moves to the end point of the searched pattern. this item has the same operation as the button. search (ascending order) (f) searches the pattern with the next longer execution time compared to the currently searched pattern after the [search (minimum) (n)] item is selected or the button is clicked. the up temporary cursor moves to the start position and the down temporary cursor moves to the end position of the searched pattern. this item has the same operation as the button. search (descending order) (b) searches the pattern with the next shorter execution time compared to the currently searched pattern after the [search (minimum) (n)] item is selected or the button is clicked. the up temporary cursor moves to the start position and the down temporary cursor moves to the end position of the searched pattern. this item has the same operation as the button. (5) [help (h)] menu file (f) view (p) option (p) operation (o) help (h) window help (w) topic search (h) window help (w) displays the help topics for this window. topic search (h) displays the help dialog box of the az850.
chapter 6 window reference user's manual u14410ej4v0um 149 [caution] ? the closes when the is closed. [error] ? when an active already exists, trying to make a window in the hold status active causes an dialog box to appear. ? if a split number over 100 is specified, a warning sound is emitted.
chapter 6 window reference user's manual u14410ej4v0um 150 trace view window [function level] [trace view window] [outline] this window displays the az trace data displayed as an execution transition diagram. more detailed az trace data can be viewed by opening the from the . this window can be opened with one of the following operations. ? from the main menu in the , select [browse (b)], then [trace view (t )]. ? in the , click the button. ? in the , press the alt + b , t keys in that order. [window] figure 6-31 trace view window (function level) (a) (b) (c) (d) (e) (f) (a) time display area (b) fromaddress display area (c) totask display area (d) function display area (e) event display area (f) port display area [function] this section describes the following items. (1) description of each area (2) az trace data display method (3) az trace viewing method (4) az trace data search method
chapter 6 window reference user's manual u14410ej4v0um 151 (1) description of each area (a) time display area displays the relative time from the az trace start time. the unit is milliseconds (msec). (b) fromaddress display area displays the execution address or i/o access address at the branch source. (c) toaddress display area displays the execution address at the branch destination. (d) function display area displays an execution function name. (d) event display area displays the type of trace data event. the types of events that can be displayed are as follows. ? ? ? ? call means the start of function call. ? ? ? ? ret means the end of function return. ? ? ? ? int means the start of interrupt servicing. ? ? ? ? reti means the end of interrupt servicing. ? ? ? ? i/o read means i/o input. ? ? ? ? i/o write means i/o output. (e) port area displays the subject i/o name if ?i/o read? or ?i/o write? is displayed in the event field. (2) az trace data display method az trace data is displayed from the location specified in the execution transition diagram. [operation method] <1> indicate the az trace data display start position. if the up temporary cursor is displayed in the execution transition diagram, it becomes the display start position, and if it is not displayed, the beginning of the trace data becomes the display start position. <2> from the menu bar on the , select [browse (b)], then [trace view (t)], to open this window. remark when the is open, moving the up temporary cursor in the execution transition diagram causes the az trace data display position to move automatically.
chapter 6 window reference user's manual u14410ej4v0um 152 (3) az trace data viewing method figure 6-32 describes how to read the az trace data. figure 6-32 az trace data viewing method (function level) (a) the function ?-start-intvltime? is called at address 0x03f8 after the system has been started (0.0028 ms). (b) the function ?_start_intvtimer? executes i/o output to ?tmc4? at address 0xfff342 after the system has been started (0.0037 ms). (4) az trace data search method when opened from the menu bar in this window, search using execution task/interrupt name, event type, system call arguments, etc., as conditions can be performed from the dialog box. for details about the search method, refer to the dialog box section. [operation method] <1> from the menu bar in this window, select [view (v)], then [search (s )]. <2> set the search conditions in the dialog box that is automatically opened. <3> the search in the new trace time direction is started by clicking the button in the dialog box, and the trace search in the old trace time direction is started by clicking the button. <4> update the az trace data display position with the search location as the beginning. (a) (b)
chapter 6 window reference user's manual u14410ej4v0um 153 [menu bar] (1) [file (f)] menu file (f) edit (e) view (v) operation (o) help (h) open (o) ? save as (a) ? print (p) close (c) open (o) this menu item is not supported in this version. save as (a) opens the dialog box. saves the display information of the current window to a display file, either as a new file or as a file with a different name. the default extension of the display file for this window is .azt. print (p) this menu item is not supported in this version. close (c) closes this window. (2) [edit (e)] menu file (f) edit (e) view (v) operation (o) help (h) copy (c) copy (c) this menu item is not supported in this version. (3) [view (v)] menu file (f) edit (e) view (v) operation (o) help (h) search (s) ? time (t) from address (a) to address (o) function (f) event (e) port (p) search (s) opens the dialog box. time (t) specifies show/hide for the ?time? item. select either show (s) or hide (i ) from the sub-menu. from address (a) specifies show/hide for the ?from address? item. select either show (s) or hide (i ) from the sub-menu. to address (o) specifies show/hide for the ?to address? item. select either show (s) or hide (i ) from the sub-menu. function (f) specifies show/hide for the ?function (f)? item. select either shows (s) or hide (i ) from the sub-menu. show (s) hide (i)
chapter 6 window reference user's manual u14410ej4v0um 154 event (e) specifies show/hide for the ?event? item. select either show (s) or hide (i ) from the sub-menu. port (p) specifies show/hide for the ?i/o port? item. select either show (s) or hide (i ) from the sub-menu. (4) [operation (o)] menu file (f) edit (e) view (v) operation (o) help (h) active (a) hold (h) active (a) switches this window from hold status to active status. hold (h) switches this window from active status to hold status. (5) [help (h)] menu file (f) edit (e) view (v) operation (o) help (h) window help (w) topic search (h) window help (w) displays the help topics for this window. topic search (h) displays the help of the az850. [caution] ? this window closes when the is closed. [error] ? if an active exists, making a window in the hold status active causes the dialog box to appear.
chapter 6 window reference user's manual u14410ej4v0um 155 trace search dialog box [function level] [trace search] [outline] this dialog box is used to set search conditions used for searching az trace data in the . execution task name/interrupt name, event type, system call argument, etc., can be set as the search condition. this dialog box can be opened with one of the following operations. ? in the menu bar in the , select [view (v)], then [search (s )]. ? in the , press the alt + v , s keys in that order. [window] figure 6-33 trace search dialog box (function level) (a) search item setting area (b) search condition setting area [function] this section describes the following items. (1) description of each area (2) search method (1) description of each area (a) search item setting area this area is used to specify the trace data search items in the . function select this to perform search by function name/interrupt name. event select this to perform search by event type. port select this to perform search by i/o port name.
chapter 6 window reference user's manual u14410ej4v0um 156 (b) search condition setting area this area is used to specify search conditions for each search item. the drop-down list displays the function names/interrupt names, event types, and i/o port names that exist in the collected az trace data. (2) search method [operation method] <1> in the search item setting area, select the item to be searched. multiple items can be selected. <2> in the search item setting area, either input the search condition directly from the keyboard, or select it from the drop-down list. <3> click the button or the button. the search is performed as follows. ? if button is clicked locations that match the set search condition are searched in the new trace time direction, and the is displayed with the search location as the beginning. ? if button is clicked locations that match the set search condition are searched in the old trace time direction, and the is displayed with the search location as the beginning. a trace condition setting example in the dialog box is shown below. figure 6-34 when searching location where function ?_main? was executed figure 6-35 when searching location where function ?_main? was called
chapter 6 window reference user's manual u14410ej4v0um 157 figure 6-36 when searching location where function ?_main? executes i/o output to ?pm0? [function buttons] operation target button function search condition locations that match the set search condition are searched in the new trace time direction, and the is displayed with the search location as the beginning. search condition locations that match the set search condition are searched in the old trace time direction, and the is displayed with the search location as the beginning. ? closes this dialog box. ? opens an explanation window for this dialog box. [error] ? if no location that matches the set search condition exists in the az trace data, a warning sound is emitted. ? a warning sound is emitted when the button or the button is pressed without any item selected in the search item setting area.
chapter 6 window reference user's manual u14410ej4v0um 158 call graph window [function level] [call graph window] [outline] this window displays a diagram indicating the relationship between caller functions and callee functions in a zone between the up cursor and down cursor on the execution transition diagram in the function-level . this window can be used to visually monitor the relationship between each function (parent function, source function, and child function). this window can be opened as follows: ? select [browse (b)] [call graph (g)] in the function-level . ? press the alt + b , g keys in that order in the function-level . ? click the button in the function-level . ? select [jump (j)] [call graph (g)] in the function-level . ? press the alt + j , and g keys in that order in the function-level . ? click the button in the function-level . [window] figure 6-37 call graph window (function level) function search combo box scale change box call graph display area [function] this section describes the following items. (1) description of each area (2) searching method
chapter 6 window reference user's manual u14410ej4v0um 159 (1) description of each area (a) function search combo box this box is used to specify the function name/interrupt name to be searched when searching a function/interrupt on the call graph. searching is started as soon as the function name/interrupt name to be searched has been selected from the drop-down list, and the specified function/interrupt is displayed in reverse video. (b) scale change button this button reduces the relational diagram in the window in a range of 1/1 to 1/8. if a value exceeding this range is specified, a warning sound is issued. (c) call graph display area this area displays a diagram indicating the relationship between caller functions and callee functions in a zone between the up cursor and down cursor on the function-level execution transition diagram. by double-clicking the specified function name/interrupt name, the dialog box can be opened. this area can be displayed in two ?display modes?. (2) display modes of call graph the call graph can be displayed in the following two modes: (a) standard mode in this mode, function call relationships that have emerged in a specified range are displayed. as shown in figure 6-38, one function (box) is displayed only once, and the relationship between functions is displayed by lines connecting each other. this mode is used to check call relationships in a wide range. figure 6-38 standard mode (function level)
chapter 6 window reference user's manual u14410ej4v0um 160 (b) total mode in this mode, function call relationships that have appeared in a specified range as displayed. as shown in figure 6-39, one function (box) is displayed as many times as it has been executed. this mode is used to check relationships of function calls as they have been executed. figure 6-39 total mode (function level) ? ?recursive function? is displayed in a line that goes around the function name (in the above figure, ?_func8? is a recursive function). ? if a function/interrupt is specified by the mouse, the , or corresponding to the specified function/interrupt can be opened by selecting the [jump (j)] menu in this window. ? by double-clicking any function/interrupt with the mouse, the dialog box that is used to check the detailed information on the ?parent function?, ?source function?, or ?child function? of the specified function/interrupt can be opened. ? functions/interrupts can be searched in the dialog box that is opened by selecting [view (v)] [search (s)] on the menu bar in this window. [function buttons] operation target button function ? opens the dialog box. reads and displays the display data of the previously saved. ? opens the dialog box. saves the display data currently displayed on the to a file. ? changes the display mode to the standard mode. ? changes the display mode to the total mode. ? opens the dialog box. ? opens the dialog box. object opens the corresponding to the specified object. if an active is already being displayed, its contents are updated. object opens the corresponding to the specified object. if an active is already being displayed, its contents are updated. object opens the corresponding to the specified object. if an active is already being displayed, its contents are updated.
chapter 6 window reference user's manual u14410ej4v0um 161 [menu bar] (1) [file (f)] menu file (f) view (v) operation (o) jump (j) help (h) open (o) ? save as (a) ? print (p) ? close (c) ? open (o) opens the dialog box and reads the previously saved display file of this window. the default extension of the display file of this window is .azc. save as (a) opens the dialog box and saves the current display information of this window to a new file, or by changing the file name. the default extension of the display file of this window is .azc. print (p) not supported by this version. close (c) closes this window. (2) [view (v)] menu file (f) view (v) operation (o) jump (j) help (h) view mode small large search? function info? view mode specifies the view mode of the call graph (standard mode or total mode). performs the same operation as clicking the button. small reduces the displayed call graph. performs the same operation as using the scale change button. large expands the displayed call graph. performs the same operation as using the scale change button. search... opens the dialog box. performs the same operation as clicking the button. function info... opens the dialog box. performs the same operation as clicking the button. standard mode expand mode
chapter 6 window reference user's manual u14410ej4v0um 162 (3) [operation (o)] menu file (f) view (v) operation (o) jump (j) help (h) active (a) hold (h) active (a) switches this window from hold status to active status. hold (h) switches this window from active status to hold status. (4) [jump (j)] menu file (f) view (v) operation (o) jump (j) help (h) source text? assemble? memory? source text? opens the corresponding to the specified object. if an active is already being displayed, its contents are updated. this item has the same operation as the button. assemble? opens the corresponding to the specified object. if an active is already being displayed, its contents are updated. this item has the same operation as the button. memory? opens the corresponding to the specified object. if an active is already being displayed, its contents are updated. this item has the same operation as the button. (5) [help (h)] menu file (f) view (p) operation (o) jump (j) help (h) window help (w) topic search (h) window help (w) displays the help topic for this window. topic search (h) displays the help dialog box of the az850. [caution] ? this window is closed when the function-level is closed.
chapter 6 window reference user's manual u14410ej4v0um 163 function search dialog box [function level] [function search] [outline] this dialog box is used to search a function/interrupt name in the . this dialog box can be opened as follows: ? select [view (v)] [search (s)] in the function-level . ? click the button in the function-level . ? press the alt + v , and s keys, in that order, in the function-level . [window] figure 6-40 function search dialog box (function level) case sensitivity check box search condition setting area [function] this section describes the following items. (1) description of each area (2) searching method (1) description of each area (a) search condition setting area this area is used to set the function/interrupt name to be searched. the function/interrupt name can be directly input from the keyboard or selected from the drop-down list. on the drop-down list, all the function/interrupt names that exist on the call graph are displayed. (b) case sensitivity check box this check box is used to specify whether the uppercase and lowercase characters are distinguished when a function/interrupt name is searched. by checking this box, the uppercase and lowercase characters are distinguished.
chapter 6 window reference user's manual u14410ej4v0um 164 [function buttons] operation target button function search condition searches the location that matches the specified ?search condition? from the location of the up cursor or up temporary cursor on the execution transition diagram, in the time axis direction. the up temporary cursor on the execution transition diagram moves the position of the search result. search condition searches the location that matches the specified ?search condition? from the location of the up cursor or up temporary cursor on the execution transition diagram, in the direction opposite to the time axis direction. the up temporary cursor on the execution transition diagram moves the position of the search result. ? closes this dialog box. ? opens an explanation window for this dialog box. [error] ? if the specified function/interrupt name does not exist on the call graph, a warning sound is issued. ? if a button is clicked when the function to be searched does not exist after the function is displayed in reverse video, or if a button is clicked when the function to be searched does not exist before the function displayed in reverse video, a warning sound is issued.
chapter 6 window reference user's manual u14410ej4v0um 165 function detail information dialog box [function level] [function detail information] [outline] this dialog box displays detailed information on the parent function, source function, and child function displayed in the . this dialog box can be opened as follows: ? select [view (v)] [function detail information (i)] in the function-level . ? click the button in the function-level . ? press the alt + v , and i keys in that order in the function-level . [window] figure 6-41 function detail information dialog box (function level) [function] this section describes the following items. (1) description of each area (1) description of each area (a) parent function information display area this area displays detailed information of a parent function, such as the function name, time, percentage, and the number of times of execution. parent function information display area source function information display area child function information display area
chapter 6 window reference user's manual u14410ej4v0um 166 (b) source function information display area this area displays detailed information such as execution time including or excluding that of the child function of the source function, the number of times the source function has been called, time, percentage, and stack size. (c) child function information display area this area displays the detailed information of a child function, such as the time, percentage, and the number of times of execution. [function buttons] operation target button function ? closes this dialog box. ? opens an explanation window for this dialog box. [error] ? if a function name on the list of the parent function information display area or child function information display area is double-clicked, the dialog box of the specified function as the source function is displayed. ? this dialog box is closed when the is closed.
user's manual u14410ej4v0um 167 appendix a debugging method using az850 this appendix describes the basic procedure for debugging using the az850. (1) debugger startup start the debugger to be used. (2) az850 startup start the az850 and open the main window. at this time, check if << connected >> is displayed in the status display area. if it is, the connection with the debugger was successful. (3) load module download download a load module prepared for the az850 to the debugger. check if <> is displayed on the status bar in the main window in the case of the soft trace form, or if <> is displayed in the case of the hardware trace form. (4) settings in dialog box open the dialog box, and set the following options in this dialog box. ? address mask specification specify the upper limit value of the physical address space on the chip in the
field. ? real-time os type selection select the real-time os type embedded in the user program with <>. ? trace form selection select the trace form to be used with <>. ? trace buffer type selection and trace buffer area setting if the software trace form has been selected as the trace form, after selecting the type of trace buffer to be used with <>, set its area with <>. ? trace level selection select the trace level of the az trace data to be collected with <>. in this version, only ?task level? can be selected as the task level. download a load module prepared for the az850 to the debugger. (5) az trace mode switching set the az850 trace function to ?az trace on? to enable it. caution do not perform the az trace on setting before downloading of the load module (loading of the real-time os information) has been completed. (6) user program execution execute the user program on the debugger. the trace data for the az850 starts being collected into the trace buffer along with the user program execution.
appendix a debugging method using az850 user's manual u14410ej4v0um 168 (7) user program stop stop the user program on the debugger (if a break point has been set, wait until the break). the az850 trace data collection stops at the same time as the user program execution. (8) trace data upload convert the trace data collected in the trace buffer to az trace data through uploading. (9) check using open the , and check the collected az trace data with execution transition diagrams for individual tasks. ? ? ? ? to display execution transition diagram... from the menu bar in the main window, select [browse (b)], [analyze (z )], [task level (t )] or click the button on the tool bar. ? ? ? ? to check the operation of an object... check the operation of the specified object using the simple search button displayed by clicking the object name. ? ? ? ? to check the task/interrupt transition status... from the dialog box displayed from this window, search the switching points of specific task, interrupt occurrence locations, the occurrence locations of specific system calls, etc. the search results are displayed on the execution transition diagram. ? ? ? ? to analyze the task/interrupt processing time... search/analyze the pattern (specific processing) set in the dialog box opened from this dialog box. the search results are displayed in the execution transition diagram. the distribution status caused by the set pattern processing time is displayed in the . (10) check using check the cpu use status in the defined interval from the . ? ? ? ? to display the cpu utilization rate in the execution transition diagram, set the up cursor and the down cursor in the interval for which the cpu utilization rate is to be collected. the cpu utilization rate is collected for the time interval delimited by the up cursor and the down cursor. after setting these cursors, open the . remark if the is active, moving the up cursor or the down cursor in the task level execution transition diagram causes automatic update of the cpu percentages.
appendix a debugging method using az850 user's manual u14410ej4v0um 169 (11) check using check the execution time distribution status for the specified pattern from the . ? ? ? ? to display pattern distributions... [pattern display method] <1> in the , set the up cursor and the down cursor in the interval for which the pattern distribution status is to be collected. <2> from the menu bar in the , select [browse (b)], [pattern distribution (p )], or click the button on the tool bar. <3> in the dialog box that opens automatically, set the conditions of the pattern to be calculated and displayed, and then click the ok button. [pattern display method from ] <1> in the , define the interval for which the pattern distribution status is to be calculated by setting the up cursor and the down cursor. <2> in the , after selecting an object in the list, select [jump (j)], [pattern distribution (p)] from the menu bar, or click the button on the tool bar. the pattern distribution displayed using this method is data calculated in the processing interval of the specified object (mode in which switching of the specified object is used as the start/end point). remark when the is active, moving the up cursor or the down cursor in the task level execution transition diagram causes automatic update of the pattern distribution contents. (12) check using check in detail the collected az trace data using the . ? ? ? ? to display az trace data... in the execution transition diagram, move the up temporary cursor to the desired position. if the up temporary cursor is not displayed, the first trace data becomes the display start position. after setting the cursor, open the . remark if the is active, moving the up cursor in the task level execution transition diagram causes automatic update of the az trace data. repeat the steps from step (6) as required to continue debugging. remark if the soft trace form is used, the contents of the trace buffer are cleared by resetting az trace on.
user's manual u14410ej4v0um 170 appendix b error message list the error messages of the az850 are described using the following format. error message error no. user handling not enough memory. 1000 the memory in the machine is insufficient. after closing unneeded windows, perform the operation again. internal error. 1001 an error that could not be anticipated has occurred. perform the operation again from the beginning. can?t change to active mode. 1010 since an active window already exists, the status of the window cannot be changed to active. either change the status of the active window to hold or close the active window before making the desired window active. illegal file name. 1020 an incorrect character(s) or character length, or an illegal format, was used in the file name. check the file name and then perform the operation again. not exist file. 1021 the specified file name does not exist. specify the correct file name. can?t write file. 1022 either there is not sufficient free disk space or the specified file is a read-only file, so that it cannot be written to. specify a file in a separate disk, or a file that is not read-only. illegal file format. 1023 the file cannot be read because its format is incorrect. check if it is an az file or not. not exist function information. 1030 no function information is included in the load module. append the -g and -xaz options and create the load module again. nesting of function is too deep. 1040 the number of functions or nests (5000) that can be analyzed in the az850 has been exceeded or the az850 may not be able to detect a restore from an interrupt because the ?option_az_info_ri? code has not been inserted in the program, and therefore the az850 judges that the interrupt is nested. reduce the number of functions to be traced in the measurement select dialog box to reduce the number of nested functions, or confirm that the ?option_az_info_ri? code that creates restore data from an interrupt is correctly inserted. not implement az interface. 1100 connection with the debugger is not possible because the az interface is not mounted on the debugger side. check whether the debugger supports tip.
appendix b error message list user's manual u14410ej4v0um 171 can?t switch trace mode. 1110 an error occurred during az trace on/off switching. the address mask value may not be correct or communication between the debugger and the az850 may have failed. check that the address mask value is set correctly in the dialog box. otherwise restart. not specified trace buffer region. 1118 az trace on was set without a trace buffer area being specified. in the dialog box, specify the trace buffer area, and then set az trace on. can?t upload. 1120 an error occurred during trace data uploading. the trace memory area settings may be incorrect. check if correct addresses have been specified as the trace buffer area in the dialog box. not trace data. 1121 there is no trace data in the executed data. execute the user program in the az trace mode and upload the trace data again. illegal trace data. 1122 the time lag in the trace data may be incorrect. check if the user own coding block is correctly coded. not include task level trace data. 1128 task-level trace data was not included in the collected trace data. check if the task level has been selected in the dialog box, or check the transition diagram in the . not include func level trace data. 1129 the collected trace data did not contain function-level trace data. check if the function level has been selected in the dialog box, or check the transition diagram in the . not download program. 1130 an attempt was made to set az trace on before downloading the program. set az trace on after downloading the program. not select trace level. 1200 no trace level has been specified in the dialog box. specify either one or both of task level / func. level in the dialog box. illegal trace buffer address. 1210 the address range specified for trace buffer area specification in the dialog box is incorrect. specify a correct address range for trace buffer area specification in the dialog box. the address mask is illegal. 1220 an illegal value that cannot be handled as a mask value was input for the address mask specification in the dialog box. specify a hexadecimal number for the mask value in the dialog box. no measurement select object. 1300 no trace target has been specified in the measurement target select dialog box. specify a trace target in the dialog box. not exist pattern. 1400 the specified pattern does not exist in the trace data between the up cursor and the down cursor. expand the interval between the up cursor and the down cursor, and perform the operation again. if this error occurs even with the maximum interval, the specified pattern does not exist in the trace data.
appendix b error message list user's manual u14410ej4v0um 172 program running. 1500 communication between the debugger and the az850 may have failed. activate the debugger and the az850. the specified file has an invalid rx type. 1700 an attempt was made to read an az file whose rx differs from the rx specified in the dialog box. check if an appropriate rx is specified in the dialog box.
user's manual u14410ej4v0um 173 appendix c index [a] active status ...............................................................75 analyze window (task level) .......................................65 analyze window (function level) ...............................112 az main window .........................................................53 az monitor creation ...........................................................32, 36 initialization ............................................................37 az option dialog box ..................................................59 az trace data ..............................................................45 display method ....................................................105 search .................................................................106 viewing method ...................................................106 az trace mode ............................................................25 az trace off.......................................................53, 55 az trace on...................................................25, 53, 55 az: trace view window (task level) ..........................104 az: trace view window (function level) ....................150 azinit() ........................................................................37 azmon.o................................................................32, 36 __azmon_countmode ..............................................35 __azmon_getcounter ..............................................35 __azmon_inittimer...................................................35 __azmon_maxcount ................................................35 __azmon_timerpercount ........................................35 azusr.850..............................................................32, 36 azusr.s ..................................................................32, 36 [c] call graph window ....................................................158 c compiler package....................................................17 cpu utilization rate display method .............................................89, 135 cpu window (task level).............................................87 cpu window (function level).....................................133 cpu types ............................................................23, 60 csv format ................................................................63 cyclic startup handler .................................................45 [d] debugger....................................................................17 debugging method ...................................................167 detailed mode (task level) ..........................................72 detailed mode (function level) ..................................117 disassemble text display ..............................47, 78, 122 display file ..................................................................62 display mode ..................................................... 71, 116 down cursor....................................................... 67, 113 down temporary cursor...................................... 67, 113 [e] error message list.................................................... 170 event........................................................................ 104 number of set event ............................................. 40 event flag............................................................. 13, 70 exception ................................................................... 45 execution transition diagram display method ............................................. 69, 115 display mode ................................................ 71, 116 verification method ....................................... 74, 118 viewing method............................................. 71, 116 extension ................................................................... 63 [f] file format.................................................................. 63 file select dialog box................................................. 62 function child function ...................................................... 158 function detail information.................................. 165 parent function.................................................... 158 source function ................................................... 158 [g] given event........................................................ 83, 127 grid lines............................................................ 76, 120 [h] hard trace form.............................................. 14, 40, 44 histogram display .............................................. 96, 143 hold status......................................................... 77, 121 host machine............................................................. 17 [i] idle task ..................................................................... 70 in-circuit emulator ................................................ 16, 17 init_handler().............................................................. 37 installation.................................................................. 18 interrupt ..................................................................... 71 maskable interrupt ................................................ 71 non-maskable interrupt......................................... 71 interrupt handler ........................................................ 71
appendix c index user's manual u14410ej4v0um 174 [j] jump to end button ............................................ 68, 114 jump to beginning button .................................. 68, 114 [l] link directive file .................................................. 38, 39 load module .............................................................. 22 [m] mailbox ...................................................................... 70 mark ........................................................................... 73 measurement select dialog box ............................... 124 memory contents display ................................... 78, 122 memory management ................................................ 72 memory pool ............................................................. 70 message communication ........................................... 15 makefile ..................................................................... 36 monitor program................................................... 14, 32 [n] number ...................................................................... 99 [o] object ................................................................ 66, 113 object name.......................................................... 70 addition ................................................................. 81 limitation............................................................... 81 shown sequence modification .............................. 81 object select dialog box (task level).......................... 80 object select dialog box (function level).................. 130 operating environment .............................................. 17 [p] pattern ............................................................... 92, 140 condition ....................................................... 93, 141 mode ............................................................. 93, 141 pattern distribution display method ............................................. 98, 145 viewing method..................................................... 98 pattern search dialog box (task level) ....................... 83 pattern search dialog box (function level) ............... 127 pattern set dialog box (task level) ............................. 92 pattern set dialog box (function level) ..................... 140 pattern window (task level) ........................................ 96 pattern window (function level) ................................ 143 [r] real-time os ....................................................... 14, 60 rom emulator...................................................... 15, 17 [s] scale modify button ..................................................... 68 search event types ................................................... 106, 152 execution transition diagram........................... 74, 118 given event ..................................................... 83, 127 interrupt name ................................. 85, 105, 128, 152 object .............................................................. 74, 118 pattern............................................................. 83, 101 processing time....................................................... 98 system call argument.................................... 106, 152 task name....................................................... 85, 106 trace ..................................................................... 110 search condition .................... 83, 92, 109, 127, 140, 155 search mode.................................................. 84, 93, 128 semaphore............................................................. 13, 70 setup.exe..................................................................... 18 simple search button ........................................... 68, 114 simulator ................................................................ 16, 17 soft trace form.................................................. 14, 32, 44 sort mode..................................................................... 81 source text display......................................... 47, 78, 122 standard mode (task level) .......................................... 72 standard mode (function level) .................................. 116 startup ................................................................... 18, 22 status bar..................................................................... 54 supply medium ............................................................ 18 symbol ................................................................... 55, 70 synchronous communication management ................. 72 system call ...................................................... 45, 47, 48 issue system call name / returned system call name.. 104 return value .......................................................... 104 system configuration ................................................... 15 system execution time ................................................. 88 [t] task ............................................................................. 70 task execution time ..................................................... 88 task switching ............................................................. 84 time accuracy.............................................................. 40 timer counter ............................................................... 33 tip ............................................................................... 13 tool bar........................................................................ 53 trace buffer area ......................................................... 61 trace buffer type.......................................................... 60 trace form........................................................ 26, 31, 60 trace level ............................................................. 26, 61 trace memory .............................................................. 44 area......................................................................... 44
appendix c general index user's manual u14410ej4v0um 175 clear ...................................................................... 44 trace search dialog box (task level) ......................... 109 trace search dialog box (function level) ................... 155 tool open interface ..................................................... 13 [u] up cursor ............................................................. 67, 113 up temporary cursor ............................................ 67, 113 upload ................................................................... 56, 58 user own coding block ................................................ 33 uninstallation .............................................................. 21 [v] varfunc()....................................................................... 37 vertical line delete mode (task level) ........................... 71 vertical line delete mode (function level) ................... 116
user's manual u14410ej4v0um 176 appendix d revision history revisions up to this edition are shown below. the ?chapter? column indicates the chapter in each edition to which the revision was applied. edition description chapter 2nd newly created ? change of operating environment chapter 1 outline addition of cpu type specification area chapter 3 operation method 3rd addition of description on window reference chapter 6 window reference change of operating environment chapter 1 outline modification of installation and uninstallation procedures change of name of file for az monitor creation chapter 2 installation modification and addition of screen diagram and description for each window and dialog box chapter 3 operation method modification of description on each window and dialog box chapter 6 window reference 4th addition, deletion and modification of error messages appendix b error message list
although nec has taken all possible steps to ensure that the documentation supplied to our customers is complete, bug free and up-to-date, we readily accept that errors may occur. despite all the care and precautions we've taken, you may encounter problems in the documentation. please complete this form whenever you'd like to report errors or suggest improvements to us. hong kong, philippines, oceania nec electronics hong kong ltd. fax: +852-2886-9022/9044 korea nec electronics hong kong ltd. seoul branch fax: +82-2-528-4411 p.r. china nec electronics shanghai, ltd. nec electronics taiwan ltd. fax: +86-21-6841-1137 address north america nec electronics inc. corporate communications dept. fax: +1-800-729-9288 +1-408-588-6130 europe nec electronics (europe) gmbh market communication dept. fax: +49-211-6503-274 south america nec do brasil s.a. fax: +55-11-6462-6829 taiwan asian nations except philippines nec electronics singapore pte. ltd. fax: +886-2-2719-5951 fax: +65-250-3583 japan nec semiconductor technical hotline fax: +81- 44-435-9608 i would like to report the following error/make the following suggestion: document title: document number: page number: thank you for your kind support. if possible, please fax the referenced page or drawing. excellent good acceptable poor document rating clarity technical accuracy organization cs 02.3 name company from: tel. fax facsimile message


▲Up To Search▲   

 
Price & Availability of AZ703000

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X